Top "System.reflection" questions

System.

Best way to get a Type object from a string in .NET

What is the best way to convert a string into a Type object in .NET? Issues to consider: The type …

.net reflection system.reflection
PropertyInfo - GetProperties with attributes

I'm trying to create a custom attribute validation for a webform projects. I already can get all properties from my …

c# system.reflection
Why would Assembly.GetExecutingAssembly() return null?

I am using a xml file as an embedded resource to load an XDocument. We are using the following code …

c# assemblies embedded-resource system.reflection
What does System.Reflection.Missing.Value do?

I encountered a code given below Object oMissing = System.Reflection.Missing.Value oDataDoc = wrdApp.Documents.Open(ref oName, ref oMissing, …

c# system.reflection
Get object by reflection

I'm looking for mechanism in c# works like that: Car car1; Car car2; Car car = (Car)SomeMechanism.Get("car1"); car1 …

c# .net reflection c#-4.0 system.reflection
How to convert PropertyInfo to property expression and use it to invoke generic method?

How to convert PropertyInfo to property expression which can be used to invoke StructuralTypeConfiguration<TStructuralType>.Ignore<TProperty&…

c# .net linq system.reflection
How to get constructor as MethodInfo using Reflection

The constructor looks like this: public NameAndValue(string name, string value) I need to get it as a MethodInfo using …

c# .net reflection system.reflection
Add object to Entity Framework dynamically using Reflection

In the following code, the type of domainObject varies (but ends with DO, which I trim then to get the …

c# entity-framework system.reflection
typeof(DateTime?).Name == Nullable`1

Using Reflection in .Net typeof(DateTime?).Name returns "Nullable`1". Is there any way to return the actual type as a …

c# .net system.reflection
How to get methods in a type

Given: System.Type instance. The aim is to get the newly-introduced methods (i don't know the right word) in the …

c# .net system.reflection