Class ReflectionExtensions
Class ReflectionExtensions.
Inheritance
System.Object
ReflectionExtensions
Assembly: ISynergy.Framework.Core.dll
Syntax
public static class ReflectionExtensions : object
Methods
View Source
GetAllReferencedAssemblies(Assembly)
Declaration
public static List<Assembly> GetAllReferencedAssemblies(this Assembly _self)
Parameters
Type |
Name |
Description |
Assembly |
_self |
|
Returns
Type |
Description |
List<Assembly> |
|
View Source
GetAllReferencedAssemblyNames(Assembly)
Declaration
public static AssemblyName[] GetAllReferencedAssemblyNames(this Assembly _self)
Parameters
Type |
Name |
Description |
Assembly |
_self |
|
Returns
Type |
Description |
AssemblyName[] |
|
View Source
GetIdentityProperty<T>()
Gets the identity property.
Declaration
public static PropertyInfo GetIdentityProperty<T>()
where T : class
Returns
Type |
Description |
PropertyInfo |
PropertyInfo.
|
Type Parameters
View Source
GetIdentityProperty<T>(T)
Gets the identity property.
Declaration
public static PropertyInfo GetIdentityProperty<T>(this T _self)
where T : class
Parameters
Type |
Name |
Description |
T |
_self |
The self.
|
Returns
Type |
Description |
PropertyInfo |
PropertyInfo.
|
Type Parameters
View Source
GetIdentityPropertyName<T>()
Gets the name of the identity property.
Declaration
public static string GetIdentityPropertyName<T>()
where T : class
Returns
Type |
Description |
System.String |
System.String.
|
Type Parameters
View Source
GetIdentityValue<T>(T)
Declaration
public static object GetIdentityValue<T>(this T _self)
where T : class
Parameters
Type |
Name |
Description |
T |
_self |
The self.
|
Returns
Type |
Description |
System.Object |
System.Object.
|
Type Parameters
View Source
GetIdentityValue<T, TResult>(T)
Declaration
public static TResult GetIdentityValue<T, TResult>(this T _self)
where T : class where TResult : struct
Parameters
Type |
Name |
Description |
T |
_self |
The self.
|
Returns
Type |
Description |
TResult |
T.
|
Type Parameters
Name |
Description |
T |
|
TResult |
The type of the t result.
|
View Source
GetParentIdentityProperty<T>()
Declaration
public static PropertyInfo GetParentIdentityProperty<T>()
where T : class
Returns
Type |
Description |
PropertyInfo |
|
Type Parameters
View Source
GetParentIdentityProperty<T>(T)
Declaration
public static PropertyInfo GetParentIdentityProperty<T>(this T _self)
where T : class
Parameters
Type |
Name |
Description |
T |
_self |
|
Returns
Type |
Description |
PropertyInfo |
|
Type Parameters
View Source
GetParentIdentityPropertyName<T>()
Gets the name of the parent identity property.
Declaration
public static string GetParentIdentityPropertyName<T>()
where T : class
Returns
Type |
Description |
System.String |
System.String.
|
Type Parameters
View Source
GetParentIdentityPropertyType<T>()
Gets the type of the parent identity property.
Declaration
public static Type GetParentIdentityPropertyType<T>()
where T : class
Returns
Type |
Description |
Type |
Type.
|
Type Parameters
View Source
GetProperty<T, TValue>(T, Expression<Func<T, TValue>>)
Declaration
public static Property<TValue> GetProperty<T, TValue>(this T _self, Expression<Func<T, TValue>> selector)
where T : class, IObservableClass
Parameters
Type |
Name |
Description |
T |
_self |
|
Expression<Func<T, TValue>> |
selector |
|
Returns
Type Parameters
Name |
Description |
T |
|
TValue |
|
View Source
GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
GetPropertyInfo extension.
Declaration
public static PropertyInfo GetPropertyInfo<T, TValue>(this T _self, Expression<Func<T, TValue>> selector)
Parameters
Type |
Name |
Description |
T |
_self |
|
Expression<Func<T, TValue>> |
selector |
|
Returns
Type |
Description |
PropertyInfo |
|
Type Parameters
Name |
Description |
T |
|
TValue |
|
View Source
GetPropertyValue<T, TResult>(T, String, TResult)
Declaration
public static TResult GetPropertyValue<T, TResult>(this T _self, string propertyName, TResult defaultValue)
where T : class where TResult : IComparable<TResult>
Parameters
Type |
Name |
Description |
T |
_self |
The self.
|
System.String |
propertyName |
Name of the property.
|
TResult |
defaultValue |
The default value.
|
Returns
Type |
Description |
TResult |
T.
|
Type Parameters
Name |
Description |
T |
|
TResult |
The type of the t result.
|
View Source
GetTitleValue<T>(T)
Declaration
public static string GetTitleValue<T>(this T _self)
where T : class
Parameters
Type |
Name |
Description |
T |
_self |
The self.
|
Returns
Type |
Description |
System.String |
System.Object.
|
Type Parameters
View Source
HasIdentityProperty<T>()
Determines whether [has identity property].
Declaration
public static bool HasIdentityProperty<T>()
where T : class
Returns
Type |
Description |
System.Boolean |
true if [has identity property]; otherwise, false .
|
Type Parameters
View Source
HasIdentityProperty<T>(T)
Determines whether [has identity property] [the specified self].
Declaration
public static bool HasIdentityProperty<T>(this T _self)
where T : class
Parameters
Type |
Name |
Description |
T |
_self |
The self.
|
Returns
Type |
Description |
System.Boolean |
true if [has identity property] [the specified self]; otherwise, false .
|
Type Parameters
View Source
HasParentIdentityProperty<T>()
Declaration
public static bool HasParentIdentityProperty<T>()
where T : class
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
HasParentIdentityProperty<T>(T)
Declaration
public static bool HasParentIdentityProperty<T>(this T _self)
where T : class
Parameters
Type |
Name |
Description |
T |
_self |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
IsFreeApplication<T>(T)
Declaration
public static bool IsFreeApplication<T>(this T _self)
where T : class
Parameters
Type |
Name |
Description |
T |
_self |
The self.
|
Returns
Type |
Description |
System.Boolean |
System.Object.
|
Type Parameters