Show / Hide Table of Contents

Class Extensions

A class providing various extension methods.

Inheritance
System.Object
Extensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: IPA.Utilities
Assembly: IPA.Loader.dll
Syntax
public static class Extensions

Methods

| Improve this Doc View Source

GetDefault(Type)

Gets the default value for a given System.Type.

Declaration
public static object GetDefault(this Type type)
Parameters
Type Name Description
System.Type type

the System.Type to get the default value for

Returns
Type Description
System.Object

the default value of type

| Improve this Doc View Source

Unwrap(Nullable<Boolean>)

Unwraps a System.Nullable<T> where T is System.Boolean such that if the value is null, it gives false.

Declaration
public static bool Unwrap(this bool? self)
Parameters
Type Name Description
System.Nullable<System.Boolean> self

the bool? to unwrap

Returns
Type Description
System.Boolean

the unwrapped value, or false if it was null

  • Improve this Doc
  • View Source
Back to top Generated by DocFX