C# Class RockWeb.Blocks.Examples.Extensions

显示文件 Open project: NewPointe/Rockit

Public Methods

Method Description
InheritsOrImplements ( this child, Type parent ) : bool
ValueSafe ( this element, string defaultValue = "" ) : string

Private Methods

Method Description
HasAnyInterfaces ( Type parent, Type child ) : bool
ResolveGenericTypeDefinition ( Type parent ) : Type

Method Details

InheritsOrImplements() public static method

public static InheritsOrImplements ( this child, Type parent ) : bool
child this
parent System.Type
return bool

ValueSafe() public static method

public static ValueSafe ( this element, string defaultValue = "" ) : string
element this
defaultValue string
return string