Click here to Skip to main content
15,915,094 members
Home / Discussions / C#
   

C#

 
JokeRe: cryptography and Steganography ... Pin
Luc Pattyn16-Apr-07 13:29
sitebuilderLuc Pattyn16-Apr-07 13:29 
GeneralRe: cryptography and Steganography ... Pin
Software_Specialist17-Apr-07 5:33
Software_Specialist17-Apr-07 5:33 
AnswerRe: cryptography and Steganography ... Pin
sujithkumarsl16-Apr-07 19:56
sujithkumarsl16-Apr-07 19:56 
QuestionComboBox values from lookups table Pin
sailchris2216-Apr-07 12:48
sailchris2216-Apr-07 12:48 
GeneralRe: ComboBox values from lookups table Pin
andre_swnpl16-Apr-07 19:26
andre_swnpl16-Apr-07 19:26 
QuestionA really stupid / simple re. generics and their base type Pin
malharone16-Apr-07 10:38
malharone16-Apr-07 10:38 
AnswerRe: A really stupid / simple re. generics and their base type Pin
Christian Graus16-Apr-07 16:12
protectorChristian Graus16-Apr-07 16:12 
GeneralRe: A really stupid / simple re. generics and their base type Pin
malharone26-Apr-07 20:27
malharone26-Apr-07 20:27 
Sorry for the delayed reply. But IMO this really seems like a missing functionality in language. Simple things such as not being able to have a collection of Nullable types makes me wonder if this was intentional or something they overlooked. e.g. List<Nullable> myNullableValuesCollection = new List<Nullable>();

Here's my real requirement:
I have the following classes/interfaces:
- IDomainObject<br />
- DomainObject : IDomainObject<br />
- Employee : DomainObject<br />
- Company : DomainObject<br />
- Project : DomainObject


I've the following UI elements:
- IDataboundView <T> where T:IDomainObject<br />
- BaseView : UserControl<br />
- EmployeeManagementView : BaseView, IDataboundView<Employee><br />
- CompanyManagementView : BaseView, IDataboundView<Company><br />
- ProjectManagementView : BaseView, IDataboundView<Project>


In the BaseView's load method, I'd like to be able to do something like ...

void OnLoad(..)
{
   if (this is IDataboundView)
   {
      Get the generic type parameter for the IDataboudView (e.g. Employee, Company, Project...)
      Get the list of IDomainObjects (e.g. EmployeeColl/CompanyColl/ProjectColl etc)
      Call the IDataboundView's method for "this" instance and set the collection
   }
}


But I cannot achieve the above. Do you have any suggestions?
GeneralRe: A really stupid / simple re. generics and their base type Pin
Christian Graus26-Apr-07 22:11
protectorChristian Graus26-Apr-07 22:11 
QuestionHow to Render a mcms posting page in snother page Pin
MyRunner16-Apr-07 10:22
MyRunner16-Apr-07 10:22 
QuestionCasting in C# Pin
BlitzPackage16-Apr-07 9:29
BlitzPackage16-Apr-07 9:29 
AnswerRe: Casting in C# Pin
MoustafaS16-Apr-07 9:41
MoustafaS16-Apr-07 9:41 
GeneralRe: Casting in C# Pin
Christian Graus16-Apr-07 16:14
protectorChristian Graus16-Apr-07 16:14 
GeneralRe: Casting in C# Pin
MoustafaS17-Apr-07 4:57
MoustafaS17-Apr-07 4:57 
GeneralRe: Casting in C# Pin
Seishin#16-Apr-07 23:26
Seishin#16-Apr-07 23:26 
AnswerRe: Casting in C# Pin
Luc Pattyn16-Apr-07 9:48
sitebuilderLuc Pattyn16-Apr-07 9:48 
AnswerRe: Casting in C# Pin
emiaj16-Apr-07 13:27
emiaj16-Apr-07 13:27 
GeneralRe: Casting in C# Pin
Luc Pattyn16-Apr-07 13:33
sitebuilderLuc Pattyn16-Apr-07 13:33 
GeneralRe: Casting in C# Pin
Russell Jones16-Apr-07 23:39
Russell Jones16-Apr-07 23:39 
QuestionVersionInfo? Pin
Ravi Bhavnani16-Apr-07 8:51
professionalRavi Bhavnani16-Apr-07 8:51 
AnswerRe: VersionInfo? Pin
Tarakeshwar Reddy16-Apr-07 9:01
professionalTarakeshwar Reddy16-Apr-07 9:01 
GeneralRe: VersionInfo? Pin
Ravi Bhavnani16-Apr-07 9:22
professionalRavi Bhavnani16-Apr-07 9:22 
AnswerRe: VersionInfo? Pin
Judah Gabriel Himango16-Apr-07 9:34
sponsorJudah Gabriel Himango16-Apr-07 9:34 
GeneralRe: VersionInfo? Pin
Ravi Bhavnani16-Apr-07 9:55
professionalRavi Bhavnani16-Apr-07 9:55 
Questionpinvoke COM function and damaged memory [modified] Pin
realmontanakid16-Apr-07 8:46
realmontanakid16-Apr-07 8:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.