C# Class IQObjectMapper.MapOptions

The global options object. To override options for a specific instance, pass in an instance of this, e.g. var opts = new Options { ParseValues=true, IncludeProperties=false}; Anything not specified in the constructor will default to the overall default options defined in ObjectMapper.DefaultOptions
Inheritance: IGlobalOptions, IReflectionOptions, IDictionaryOptions, IMapOptions
Show file Open project: jamietre/IQObjectMapper Class Usage Examples

Public Properties

Property Type Description
OnChange Action

Public Methods

Method Description
Copy ( IMapOptions source, IMapOptions target, bool withDefaults = true ) : void
Default ( ) : MapOptions

Return a new instance of the active global default options

DefaultsTo ( IMapOptions target ) : void

Copy the default options to any object implementing one of the options interfaces. Objects that do not implement any of the interfaces will be unchanged.

Equals ( object obj ) : bool
From ( IMapOptions options ) : MapOptions

Create a new options object based on another object implementing IGlobalOptions

GetHashCode ( ) : int
MapOptions ( ) : System

default constructor copies options from the global default settings

Protected Methods

Method Description
Change ( string prop ) : void

Private Methods

Method Description
MapOptions ( bool raw ) : System

Constructor used by the setup code. Otherwise, this will always copy settings from the defaults

OptionsArray ( IGlobalOptions options ) : BitArray

Method Details

Change() protected method

protected Change ( string prop ) : void
prop string
return void

Copy() public static method

public static Copy ( IMapOptions source, IMapOptions target, bool withDefaults = true ) : void
source IMapOptions
target IMapOptions
withDefaults bool
return void

Default() public static method

Return a new instance of the active global default options
public static Default ( ) : MapOptions
return MapOptions

DefaultsTo() public static method

Copy the default options to any object implementing one of the options interfaces. Objects that do not implement any of the interfaces will be unchanged.
public static DefaultsTo ( IMapOptions target ) : void
target IMapOptions
return void

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

From() public static method

Create a new options object based on another object implementing IGlobalOptions
public static From ( IMapOptions options ) : MapOptions
options IMapOptions
return MapOptions

GetHashCode() public method

public GetHashCode ( ) : int
return int

MapOptions() public method

default constructor copies options from the global default settings
public MapOptions ( ) : System
return System

Property Details

OnChange public property

public Action OnChange
return Action