Click here to Skip to main content
15,878,871 members
Home / Discussions / C#
   

C#

 
QuestionUsing 64 bit DLL Pin
musefan16-Jul-09 4:39
musefan16-Jul-09 4:39 
AnswerRe: Using 64 bit DLL Pin
Nagy Vilmos16-Jul-09 5:18
professionalNagy Vilmos16-Jul-09 5:18 
GeneralRe: Using 64 bit DLL Pin
musefan16-Jul-09 7:16
musefan16-Jul-09 7:16 
AnswerRe: Using 64 bit DLL [modified] Pin
dan!sh 16-Jul-09 5:30
professional dan!sh 16-Jul-09 5:30 
GeneralRe: Using 64 bit DLL Pin
Nagy Vilmos16-Jul-09 5:51
professionalNagy Vilmos16-Jul-09 5:51 
GeneralRe: Using 64 bit DLL Pin
dan!sh 16-Jul-09 5:54
professional dan!sh 16-Jul-09 5:54 
GeneralRe: Using 64 bit DLL Pin
Nagy Vilmos16-Jul-09 5:58
professionalNagy Vilmos16-Jul-09 5:58 
Questiontype.GetProperties(BindingFlags.DeclaredOnly) does not work Pin
gehbitte16-Jul-09 4:17
gehbitte16-Jul-09 4:17 
Hi,
i have a Class User which inherits from other classes:

public class User : BizObject, INotifyPropertyChanged
  {


In another class I want to get all members of the User Object using Reflection:

class ObjectHelper<T>
   {
       public static Dictionary<string, List<Object>> Compare(T oldObject, T newObject)
       {
           Type type = typeof(T);
           Dictionary<string, List<Object>> props = new Dictionary<string, List<Object>>();
           PropertyInfo[] properties = type.GetProperties(BindingFlags.DeclaredOnly);


As far as I understand the BindingFlags.DeclaredOnly flag, inherited members should not be considered.
But in my case this flag delivers absolutely no properties.

When I just use type.GetProperties() without flags, I get all members, including the (not wanted) inherited ones from the BizObject Class.
AnswerRe: type.GetProperties(BindingFlags.DeclaredOnly) does not work PinPopular
Gideon Engelberth16-Jul-09 4:28
Gideon Engelberth16-Jul-09 4:28 
GeneralRe: type.GetProperties(BindingFlags.DeclaredOnly) does not work Pin
gehbitte16-Jul-09 4:42
gehbitte16-Jul-09 4:42 
QuestionGenerics and type constraints Pin
dojohansen16-Jul-09 4:04
dojohansen16-Jul-09 4:04 
AnswerRe: Generics and type constraints Pin
OriginalGriff16-Jul-09 4:13
mveOriginalGriff16-Jul-09 4:13 
GeneralRe: Generics and type constraints Pin
dojohansen16-Jul-09 5:05
dojohansen16-Jul-09 5:05 
GeneralRe: Generics and type constraints Pin
Dan Neely16-Jul-09 5:45
Dan Neely16-Jul-09 5:45 
GeneralRe: Generics and type constraints Pin
dojohansen16-Jul-09 6:35
dojohansen16-Jul-09 6:35 
GeneralRe: Generics and type constraints Pin
Dan Neely16-Jul-09 7:09
Dan Neely16-Jul-09 7:09 
AnswerRe: Generics and type constraints Pin
Gideon Engelberth16-Jul-09 7:16
Gideon Engelberth16-Jul-09 7:16 
GeneralRe: Generics and type constraints Pin
dojohansen16-Jul-09 22:00
dojohansen16-Jul-09 22:00 
QuestionResetting Objects to startup-state Pin
chrisx5116-Jul-09 3:02
chrisx5116-Jul-09 3:02 
AnswerRe: Resetting Objects to startup-state Pin
Luc Pattyn16-Jul-09 3:24
sitebuilderLuc Pattyn16-Jul-09 3:24 
AnswerRe: Resetting Objects to startup-state Pin
dojohansen16-Jul-09 5:30
dojohansen16-Jul-09 5:30 
QuestionHow to Provide Confirmation Link to the New User in C# Pin
ChandrakanthGaddam16-Jul-09 1:35
ChandrakanthGaddam16-Jul-09 1:35 
AnswerRe: How to Provide Confirmation Link to the New User in C# Pin
Pete O'Hanlon16-Jul-09 1:57
mvePete O'Hanlon16-Jul-09 1:57 
Questionupdate progress bar concurrently in windows form Pin
Praveen Raghuvanshi16-Jul-09 1:33
professionalPraveen Raghuvanshi16-Jul-09 1:33 
AnswerRe: update progress bar concurrently in windows form Pin
monstale16-Jul-09 2:11
monstale16-Jul-09 2:11 

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.