DateOnlyFromDateTimelink
Converts a DateTime to DateOnly.
Declaration
public static object DateOnlyFromDateTime(DateTime source)
Parameters
Returns
GetDynamicPropertyExpressionlink
Gets the dynamic property expression when binding to IDictionary.
Declaration
public static string GetDynamicPropertyExpression(string name, Type type)
Parameters
Returns
GetElementTypelink
Gets the type of the element of a collection time.
Declaration
public static Type GetElementType(Type type)
Parameters
Returns
GetItemOrValueFromPropertylink
Gets the item or value from property.
Declaration
public static object GetItemOrValueFromProperty(object item, string property)
Parameters
Returns
GetPropertylink
Converts the property to a value that can be used by Dynamic LINQ.
Declaration
public static string GetProperty(string property)
Parameters
Returns
GetPropertylink
Converts the property to a value that can be used by Dynamic LINQ.
Declaration
public static Reflection.PropertyInfo GetProperty(Type type, string property)
Parameters
Returns
GetPropertyTypelink
Gets the type of the property.
Declaration
public static Type GetPropertyType(Type type, string property)
Parameters
Returns
Gets the value of the specified expression via reflection.
Declaration
public static object GetValue(object value, string path)
Parameters
Returns
Creates a function that will return the specified property.
Declaration
public static Func<TItem, TValue> Getter(string propertyName, Type type)
Parameters
Returns
Creates a function that will return the specified property.
Declaration
public static Func<object, T> Getter(object data, string propertyName)
Parameters
Returns
IsAnonymouslink
Determines whether the specified type is anonymous.
Declaration
public static bool IsAnonymous(Type type)
Parameters
Returns
Determines whether the specified type is a DateTime.
Declaration
public static bool IsDate(Type source)
Parameters
Returns
IsDateOnlylink
Determines whether the specified type is a DateOnly.
Declaration
public static bool IsDateOnly(Type source)
Parameters
Returns
Determines whether the specified type is an enum.
Declaration
public static bool IsEnum(Type source)
Parameters
Returns
IsNullableEnumlink
Determines whether the specified type is a Nullable enum.
Declaration
public static bool IsNullableEnum(Type source)
Parameters
Returns
IsNumericlink
Determines whether the specified type is numeric.
Declaration
public static bool IsNumeric(Type source)
Parameters
Returns
ReplaceFirstlink
Method to only replace first occurence of a substring in a string
Declaration
public static string ReplaceFirst(string text, string search, string replace)
Parameters
Returns
TryGetItemOrValueFromPropertylink
Tries to get a property by its name.
Declaration
public static bool TryGetItemOrValueFromProperty(object item, string property, T& result)
Parameters
Returns