C# Class NSubstitute.Core.Argument

显示文件 Open project: nsubstitute/NSubstitute

Public Methods

Method Description
Argument ( Type declaredType, Func getValue, Action setValue ) : System
CanSetValueWithInstanceOf ( Type type ) : bool
IsDeclaredTypeEqualToOrByRefVersionOf ( Type type ) : bool
IsValueAssignableTo ( Type type ) : bool

Private Methods

Method Description
AsNonByRefType ( Type type ) : Type

Method Details

Argument() public method

public Argument ( Type declaredType, Func getValue, Action setValue ) : System
declaredType System.Type
getValue Func
setValue Action
return System

CanSetValueWithInstanceOf() public method

public CanSetValueWithInstanceOf ( Type type ) : bool
type System.Type
return bool

IsDeclaredTypeEqualToOrByRefVersionOf() public method

public IsDeclaredTypeEqualToOrByRefVersionOf ( Type type ) : bool
type System.Type
return bool

IsValueAssignableTo() public method

public IsValueAssignableTo ( Type type ) : bool
type System.Type
return bool