Im using reflection to acess a class tha represents a table in DB.However,reflection read all properties of that class,and im wondering if there’re some atributte in c# we can use to avoid read that propertie.
i.e:
[AvoidThisPropertie]
public string Identity
{
get;
set;
}
You’d also have to create the
AvoidThisPropertyYou still have access to all the properties, but the LINQ statement would generate a list of the desired properties.