C# Class Rabbit.DynamicExtensions

Summary description for Extensions
Afficher le fichier Open project: yysun/Rabbit

Méthodes publiques

Méthode Description
EnsureProperty ( this obj, string propertyName, object propertyValue ) : void
HasProperty ( this obj, string propertyName, object propertyValue = null ) : bool
ToDynamic ( this record ) : dynamic
ToDynamic ( object>.this dictionary ) : dynamic

http://coderjournal.com/2010/07/turning-json-into-a-expandoobject/

ToJson ( this expando ) : string

Method Details

EnsureProperty() public static méthode

public static EnsureProperty ( this obj, string propertyName, object propertyValue ) : void
obj this
propertyName string
propertyValue object
Résultat void

HasProperty() public static méthode

public static HasProperty ( this obj, string propertyName, object propertyValue = null ) : bool
obj this
propertyName string
propertyValue object
Résultat bool

ToDynamic() public static méthode

public static ToDynamic ( this record ) : dynamic
record this
Résultat dynamic

ToDynamic() public static méthode

http://coderjournal.com/2010/07/turning-json-into-a-expandoobject/
public static ToDynamic ( object>.this dictionary ) : dynamic
dictionary object>.this
Résultat dynamic

ToJson() public static méthode

public static ToJson ( this expando ) : string
expando this
Résultat string