Skip to content

HasProperty Method ​

Definition ​

  • Namespace: JASE
  • Assembly: JASE.ReflectionTools.dll

Overloads ​

NameDescription
bool HasProperty(object obj, string property, bool caseSensitive = null, BindingFlags bindingFlags = null)Overload to HasProperty allowing passing of an object rather an a Type, gets the underlying Type of the object and then processes. Uses BindingsInstance by default so results align with GetProperty and GetValue.
bool HasProperty(Type type, string property, bool caseSensitive = null, BindingFlags bindingFlags = null)Checks if provided Type contains the named property

bool HasProperty(object obj, string property, bool caseSensitive = null, BindingFlags bindingFlags = null) ​

csharp
bool HasProperty(object obj, string property, bool caseSensitive = null, BindingFlags bindingFlags = null)

Overload to HasProperty allowing passing of an object rather an a Type, gets the underlying Type of the object and then processes. Uses BindingsInstance by default so results align with GetProperty and GetValue.

bool HasProperty(Type type, string property, bool caseSensitive = null, BindingFlags bindingFlags = null) ​

csharp
bool HasProperty(Type type, string property, bool caseSensitive = null, BindingFlags bindingFlags = null)

Checks if provided Type contains the named property