Click here to Skip to main content
15,907,326 members
Home / Discussions / C#
   

C#

 
AnswerRe: Building Regular Expressions Pin
User 665814-May-06 4:17
User 665814-May-06 4:17 
Questionget from DB to combobox Pin
moranhaim14-May-06 0:26
moranhaim14-May-06 0:26 
AnswerRe: get from DB to combobox Pin
NaNg1524114-May-06 1:19
NaNg1524114-May-06 1:19 
GeneralRe: get from DB to combobox Pin
moranhaim14-May-06 3:12
moranhaim14-May-06 3:12 
Questionhow to Break when a value of object is changed ? Pin
kumar.bs13-May-06 22:47
kumar.bs13-May-06 22:47 
AnswerRe: how to Break when a value of object is changed ? Pin
Guffa13-May-06 23:08
Guffa13-May-06 23:08 
Questionusing explicit conversion operators for arrays? Pin
SimonS13-May-06 22:05
SimonS13-May-06 22:05 
AnswerRe: using explicit conversion operators for arrays? Pin
Robert Rohde13-May-06 22:23
Robert Rohde13-May-06 22:23 
Although I don't have a clue what you want to accomplish with this weird code (why not just let Employee be a subclass of Person?) I'll try to help you:
It won't work for arrays Smile | :) . The problem is that there is no way to defined operators for arrays of a given type. But you can nevertheless transfer its elements one by one to a new array:
Person[] persons = GetMyPersonsArray();
Emplyee[] employess = new Employee[persons.Length];
for (int i = 0; i < persons.Length; i++)
   employess[i] = (Employee)persons[i];


-- modified at 4:23 Sunday 14th May, 2006
GeneralRe: using explicit conversion operators for arrays? Pin
leppie13-May-06 23:46
leppie13-May-06 23:46 
GeneralRe: using explicit conversion operators for arrays? Pin
Robert Rohde14-May-06 3:52
Robert Rohde14-May-06 3:52 
GeneralRe: using explicit conversion operators for arrays? Pin
SimonS14-May-06 23:21
SimonS14-May-06 23:21 
GeneralDynamic string conversion in c# Pin
Justin Hummel13-May-06 22:05
Justin Hummel13-May-06 22:05 
GeneralRe: Dynamic string conversion in c# Pin
Robert Rohde13-May-06 22:16
Robert Rohde13-May-06 22:16 
GeneralRe: Dynamic string conversion in c# Pin
Justin Hummel13-May-06 22:23
Justin Hummel13-May-06 22:23 
Question16-bit image Pin
IMClimatology13-May-06 18:53
IMClimatology13-May-06 18:53 
QuestionHow to display drivers in combobox? Pin
cshong13-May-06 18:53
cshong13-May-06 18:53 
QuestionUSB PNP Pin
rudy.net13-May-06 14:24
rudy.net13-May-06 14:24 
AnswerRe: USB PNP Pin
rudy.net13-May-06 16:10
rudy.net13-May-06 16:10 
QuestionIComparable interface *2 Pin
eggie513-May-06 14:23
eggie513-May-06 14:23 
AnswerRe: IComparable interface *2 Pin
led mike13-May-06 17:05
led mike13-May-06 17:05 
AnswerRe: IComparable interface *2 Pin
Josh Smith13-May-06 17:44
Josh Smith13-May-06 17:44 
Question[Access database] how to get the last row inserted? Pin
Susuko13-May-06 12:55
Susuko13-May-06 12:55 
AnswerRe: [Access database] how to get the last row inserted? Pin
NaNg1524113-May-06 17:52
NaNg1524113-May-06 17:52 
AnswerRe: [Access database] how to get the last row inserted? Pin
mav.northwind14-May-06 1:09
mav.northwind14-May-06 1:09 
QuestionPreferred WPF Dev Tools Pin
Josh Smith13-May-06 12:40
Josh Smith13-May-06 12:40 

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.