Class Extensions
A class providing various extension methods.
Inherited Members
Namespace: IPA.Utilities
Assembly: IPA.Loader.dll
Syntax
public static class Extensions
Methods
| Improve this Doc View SourceGetDefault(Type)
Gets the default value for a given Type.
Declaration
public static object GetDefault(this Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | the Type to get the default value for |
Returns
Type | Description |
---|---|
Object | the default value of |
Unwrap(Nullable<Boolean>)
Unwraps a Nullable<T> where T is Boolean such that if the value is null, it gives false.
Declaration
public static bool Unwrap(this bool? self)
Parameters
Type | Name | Description |
---|---|---|
Nullable<Boolean> | self | the bool? to unwrap |
Returns
Type | Description |
---|---|
Boolean | the unwrapped value, or false if it was null |