C# Class ManagedFusion.Serialization.JsonObject

Inheritance: System.Dynamic.DynamicObject, IModelSerializer
Exibir arquivo Open project: managedfusion/managedfusion Class Usage Examples

Public Methods

Method Description
GetDynamicMemberNames ( ) : IEnumerable
Parse ( object obj, bool throwErrorOnMissingMethod = true, System.StringComparison methodComparisonType = StringComparison.Ordinal ) : dynamic
Parse ( string json, bool throwErrorOnMissingMethod = true, System.StringComparison methodComparisonType = StringComparison.Ordinal ) : dynamic
ToString ( ) : string
TryConvert ( ConvertBinder binder, object &result ) : bool
TryGetIndex ( GetIndexBinder binder, object indexes, object &result ) : bool
TryGetMember ( GetMemberBinder binder, object &result ) : bool
TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool
TrySetIndex ( SetIndexBinder binder, object indexes, object value ) : bool
TrySetMember ( SetMemberBinder binder, object value ) : bool

Private Methods

Method Description
GetSingleIndexOrNull ( object indexes ) : string
GetStringComparer ( System.StringComparison comparisonType ) : StringComparer
IModelSerializer ( ) : object>.IDictionary
JsonObject ( object>.IDictionary model, bool throwErrorOnMissingMethod = true, System.StringComparison methodComparisonType = StringComparison.Ordinal ) : System
JsonObject ( object obj, bool throwErrorOnMissingMethod = true, System.StringComparison methodComparisonType = StringComparison.Ordinal ) : System
JsonObject ( string json, bool throwErrorOnMissingMethod = true, System.StringComparison methodComparisonType = StringComparison.Ordinal ) : System
TryGetValue ( string name, object &result ) : bool
WrapObjectIfNessisary ( object result ) : object

Method Details

GetDynamicMemberNames() public method

public GetDynamicMemberNames ( ) : IEnumerable
return IEnumerable

Parse() public static method

public static Parse ( object obj, bool throwErrorOnMissingMethod = true, System.StringComparison methodComparisonType = StringComparison.Ordinal ) : dynamic
obj object
throwErrorOnMissingMethod bool
methodComparisonType System.StringComparison
return dynamic

Parse() public static method

public static Parse ( string json, bool throwErrorOnMissingMethod = true, System.StringComparison methodComparisonType = StringComparison.Ordinal ) : dynamic
json string
throwErrorOnMissingMethod bool
methodComparisonType System.StringComparison
return dynamic

ToString() public method

public ToString ( ) : string
return string

TryConvert() public method

public TryConvert ( ConvertBinder binder, object &result ) : bool
binder System.Dynamic.ConvertBinder
result object
return bool

TryGetIndex() public method

public TryGetIndex ( GetIndexBinder binder, object indexes, object &result ) : bool
binder System.Dynamic.GetIndexBinder
indexes object
result object
return bool

TryGetMember() public method

public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder
result object
return bool

TryInvokeMember() public method

public TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool
binder System.Dynamic.InvokeMemberBinder
args object
result object
return bool

TrySetIndex() public method

public TrySetIndex ( SetIndexBinder binder, object indexes, object value ) : bool
binder System.Dynamic.SetIndexBinder
indexes object
value object
return bool

TrySetMember() public method

public TrySetMember ( SetMemberBinder binder, object value ) : bool
binder System.Dynamic.SetMemberBinder
value object
return bool