Click here to Skip to main content
15,914,943 members
Home / Discussions / C#
   

C#

 
QuestionXAML writer serialization limitation Pin
Serval Soft8-Jan-11 5:58
Serval Soft8-Jan-11 5:58 
AnswerRe: XAML writer serialization limitation Pin
jschell8-Jan-11 8:45
jschell8-Jan-11 8:45 
GeneralRe: XAML writer serialization limitation Pin
Serval Soft8-Jan-11 9:22
Serval Soft8-Jan-11 9:22 
GeneralRe: XAML writer serialization limitation Pin
Eddy Vluggen8-Jan-11 9:27
professionalEddy Vluggen8-Jan-11 9:27 
GeneralRe: XAML writer serialization limitation Pin
Serval Soft8-Jan-11 10:23
Serval Soft8-Jan-11 10:23 
GeneralRe: XAML writer serialization limitation Pin
jschell10-Jan-11 8:57
jschell10-Jan-11 8:57 
Questioncreate a modern dictionary Pin
mory_2607-Jan-11 21:24
mory_2607-Jan-11 21:24 
AnswerRe: create a modern dictionary Pin
OriginalGriff7-Jan-11 22:04
mveOriginalGriff7-Jan-11 22:04 
AnswerRe: create a modern dictionary Pin
Abhinav S8-Jan-11 0:51
Abhinav S8-Jan-11 0:51 
AnswerRe: create a modern dictionary Pin
Not Active8-Jan-11 3:24
mentorNot Active8-Jan-11 3:24 
AnswerRe: create a modern dictionary Pin
Yusuf8-Jan-11 4:48
Yusuf8-Jan-11 4:48 
GeneralRe: create a modern dictionary Pin
Ali Al Omairi(Abu AlHassan)8-Jan-11 9:53
professionalAli Al Omairi(Abu AlHassan)8-Jan-11 9:53 
QuestionI Want to know where's the error in this update Method ? Pin
Honeyboy_207-Jan-11 9:18
Honeyboy_207-Jan-11 9:18 
AnswerMy guess Pin
Keith Barrow7-Jan-11 9:28
professionalKeith Barrow7-Jan-11 9:28 
GeneralRe: My guess Pin
Honeyboy_207-Jan-11 10:15
Honeyboy_207-Jan-11 10:15 
GeneralRe: My guess Pin
Keith Barrow7-Jan-11 10:29
professionalKeith Barrow7-Jan-11 10:29 
GeneralRe: My guess Pin
Eddy Vluggen7-Jan-11 11:12
professionalEddy Vluggen7-Jan-11 11:12 
GeneralRe: My guess Pin
Not Active7-Jan-11 11:53
mentorNot Active7-Jan-11 11:53 
GeneralRe: My guess Pin
Eddy Vluggen7-Jan-11 22:05
professionalEddy Vluggen7-Jan-11 22:05 
GeneralRe: My guess Pin
Honeyboy_207-Jan-11 11:20
Honeyboy_207-Jan-11 11:20 
GeneralRe: My guess Pin
Not Active7-Jan-11 11:50
mentorNot Active7-Jan-11 11:50 
GeneralRe: My guess Pin
Honeyboy_207-Jan-11 12:04
Honeyboy_207-Jan-11 12:04 
GeneralRe: I Want to know where's the error in this update Method ? Pin
JOAT-MON7-Jan-11 9:29
JOAT-MON7-Jan-11 9:29 
AnswerRe: I Want to know where's the error in this update Method ? Pin
#realJSOP8-Jan-11 0:22
professional#realJSOP8-Jan-11 0:22 
Question.NET 4 changes to Type.GetProperties Pin
AndyGray7-Jan-11 6:07
AndyGray7-Jan-11 6:07 
Hi
I have discovered an issue using Type.GetProperties on a COM object when running under .NET 3.5 & .NET 4.0.

The following code uses the Microsoft Scripting Runtime COM object as an example - it has the same behaviour with any COM object I have tried. Under .NET 3.5, it correctly returns an array containing one property (the Drives property). Under .NET 4.0, it returns no properties.


Scripting.FileSystemObject fs = new Scripting.FileSystemObject();
Type t = fs.GetType();
PropertyInfo[] props = t.GetProperties();


Type.GetProperties seems to work correctly on .NET objects and only seems a problem with COM objects.

I have some generic code that sets property values by using a string variable as the name that works in .NET 3.5 and now fails in .NET 4.0.

I know that I can upgrade the code to use the dynamic type in .NET 4.0 to do this BUT why is this not backwards compatible or at least documented in some way that is easy to find?


Kind regards
Andy

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.