|
- c# - Set object property using reflection - Stack Overflow
Is there a way in C# where I can use reflection to set an object property? Ex: MyObject obj = new MyObject(); obj Name = "Value"; I want to set obj Name with reflection Something like: Reflection
- Reflection support in C - Stack Overflow
Reflection isn't supported in any existing at the moment C-standards But still it's possible to get something very similar to this feature in Linux MacOS Windows if gcc clang is used: as several people mentioned here - standard compliers like clang or gcc provide debug information
- reflection - Cast to a reflected Type in C# - Stack Overflow
Foo result = (Foo)objFoo; There's no real point in casting an object to a type that's unknown at compile time - you won't be able to use it: object objFoo = MakeFoo(); UnkownType result = (UknownType)objFoo; Since you don't know what UknownType is, you won't be able to use any of its methods without resorting to reflection, or to dynamics
- c# - casting with reflection - Stack Overflow
Consider the following sample code: class SampleClass { public long SomeProperty { get; set; } } public void SetValue(SampleClass instance, decimal value) { value is of type decimal, b
- c# - Using reflection to get values from properties from a list of a . . .
Using reflection to get values from properties from a list of a class Asked 13 years, 1 month ago Modified 12 years, 8 months ago Viewed 69k times
- Using C# reflection to call a constructor - Stack Overflow
I need a way similar to the above reflection statement to create a new object of type Addition using Addition(int a) So I have string s= "Addition", I want to create a new object using reflection
- Java: instantiating an enum using reflection - Stack Overflow
Java: instantiating an enum using reflection Asked 14 years, 9 months ago Modified 7 years, 8 months ago Viewed 68k times
- How to dynamically create generic C# object using reflection?
I want to dynamically create TaskA or TaskB using C# reflection (Activator CreateInstance) However I wouldn't know the type before hand, so I need to dynamically create TaskA based on string like "namespace TaskA" or "namespace TaskAB"
|
|
|