C# 클래스 Woopsa.WoopsaFormat

파일 보기 프로젝트 열기: woopsa-protocol/Woopsa 1 사용 예제들

공개 메소드들

메소드 설명
DeserializeError ( string jsonErrorText ) : Exception
DeserializeMeta ( string jsonText ) : WoopsaMetaResult
DeserializeWoopsaValue ( string jsonText ) : WoopsaValue
JsonEscape ( string value ) : string

Escapes a string so it safe for being put into quotes "" into Json Data

JsonEscape ( StringBuilder stringBuilder, string value ) : void
JsonValueText ( this value ) : string
Serialize ( this e ) : string
Serialize ( this requests ) : string
Serialize ( this responses ) : string
Serialize ( StringBuilder stringBuilder, ClientRequest request ) : void
Serialize ( StringBuilder stringBuilder, WoopsaValue>.Dictionary keyValuePairs ) : void
Serialize ( StringBuilder stringBuilder, IEnumerable requests ) : void
Serialize ( StringBuilder stringBuilder, IWoopsaValue value ) : void
SerializeKeyValue ( StringBuilder stringBuilder, string key, string value, bool escapeValue, bool jsonEscapeValue ) : void
SerializeKeyValuePrefix ( StringBuilder stringBuilder, string key ) : void
SerializeMetadata ( this obj ) : string
SerializeMetadata ( this container, bool justName = false ) : string
ToBool ( string text ) : bool
ToStringWoopsa ( System.DateTime dateTime ) : string
ToStringWoopsa ( System.Int64 value ) : string
ToStringWoopsa ( System.TimeSpan timeSpan ) : string
ToStringWoopsa ( bool value ) : string
ToStringWoopsa ( double value ) : string
ToStringWoopsa ( int value ) : string
ToStringWoopsa ( object o ) : string
TryParseWoopsa ( string value, Int16 &result ) : bool
TryParseWoopsa ( string value, Int32 &result ) : bool
TryParseWoopsa ( string value, System.Int64 &result ) : bool
TryParseWoopsa ( string value, UInt16 &result ) : bool
TryParseWoopsa ( string value, UInt32 &result ) : bool
TryParseWoopsa ( string value, System.UInt64 &result ) : bool
TryParseWoopsa ( string value, byte &result ) : bool
TryParseWoopsa ( string value, double &result ) : bool
TryParseWoopsa ( string value, float &result ) : bool
TryParseWoopsa ( string value, sbyte &result ) : bool

비공개 메소드들

메소드 설명
MustQuote ( WoopsaValueType type ) : bool
SerializeMetadata ( this elements ) : string
SerializeMetadata ( this argumentInfos ) : string

메소드 상세

DeserializeError() 공개 정적인 메소드

public static DeserializeError ( string jsonErrorText ) : Exception
jsonErrorText string
리턴 System.Exception

DeserializeMeta() 공개 정적인 메소드

public static DeserializeMeta ( string jsonText ) : WoopsaMetaResult
jsonText string
리턴 WoopsaMetaResult

DeserializeWoopsaValue() 공개 정적인 메소드

public static DeserializeWoopsaValue ( string jsonText ) : WoopsaValue
jsonText string
리턴 WoopsaValue

JsonEscape() 공개 정적인 메소드

Escapes a string so it safe for being put into quotes "" into Json Data
public static JsonEscape ( string value ) : string
value string The string to escape
리턴 string

JsonEscape() 공개 정적인 메소드

public static JsonEscape ( StringBuilder stringBuilder, string value ) : void
stringBuilder StringBuilder
value string
리턴 void

JsonValueText() 공개 정적인 메소드

public static JsonValueText ( this value ) : string
value this
리턴 string

Serialize() 공개 정적인 메소드

public static Serialize ( this e ) : string
e this
리턴 string

Serialize() 공개 정적인 메소드

public static Serialize ( this requests ) : string
requests this
리턴 string

Serialize() 공개 정적인 메소드

public static Serialize ( this responses ) : string
responses this
리턴 string

Serialize() 공개 정적인 메소드

public static Serialize ( StringBuilder stringBuilder, ClientRequest request ) : void
stringBuilder StringBuilder
request ClientRequest
리턴 void

Serialize() 공개 정적인 메소드

public static Serialize ( StringBuilder stringBuilder, WoopsaValue>.Dictionary keyValuePairs ) : void
stringBuilder StringBuilder
keyValuePairs WoopsaValue>.Dictionary
리턴 void

Serialize() 공개 정적인 메소드

public static Serialize ( StringBuilder stringBuilder, IEnumerable requests ) : void
stringBuilder StringBuilder
requests IEnumerable
리턴 void

Serialize() 공개 정적인 메소드

public static Serialize ( StringBuilder stringBuilder, IWoopsaValue value ) : void
stringBuilder StringBuilder
value IWoopsaValue
리턴 void

SerializeKeyValue() 공개 정적인 메소드

public static SerializeKeyValue ( StringBuilder stringBuilder, string key, string value, bool escapeValue, bool jsonEscapeValue ) : void
stringBuilder StringBuilder
key string
value string
escapeValue bool
jsonEscapeValue bool
리턴 void

SerializeKeyValuePrefix() 공개 정적인 메소드

public static SerializeKeyValuePrefix ( StringBuilder stringBuilder, string key ) : void
stringBuilder StringBuilder
key string
리턴 void

SerializeMetadata() 공개 정적인 메소드

public static SerializeMetadata ( this obj ) : string
obj this
리턴 string

SerializeMetadata() 공개 정적인 메소드

public static SerializeMetadata ( this container, bool justName = false ) : string
container this
justName bool
리턴 string

ToBool() 공개 정적인 메소드

public static ToBool ( string text ) : bool
text string
리턴 bool

ToStringWoopsa() 공개 정적인 메소드

public static ToStringWoopsa ( System.DateTime dateTime ) : string
dateTime System.DateTime
리턴 string

ToStringWoopsa() 공개 정적인 메소드

public static ToStringWoopsa ( System.Int64 value ) : string
value System.Int64
리턴 string

ToStringWoopsa() 공개 정적인 메소드

public static ToStringWoopsa ( System.TimeSpan timeSpan ) : string
timeSpan System.TimeSpan
리턴 string

ToStringWoopsa() 공개 정적인 메소드

public static ToStringWoopsa ( bool value ) : string
value bool
리턴 string

ToStringWoopsa() 공개 정적인 메소드

public static ToStringWoopsa ( double value ) : string
value double
리턴 string

ToStringWoopsa() 공개 정적인 메소드

public static ToStringWoopsa ( int value ) : string
value int
리턴 string

ToStringWoopsa() 공개 정적인 메소드

public static ToStringWoopsa ( object o ) : string
o object
리턴 string

TryParseWoopsa() 공개 정적인 메소드

public static TryParseWoopsa ( string value, Int16 &result ) : bool
value string
result System.Int16
리턴 bool

TryParseWoopsa() 공개 정적인 메소드

public static TryParseWoopsa ( string value, Int32 &result ) : bool
value string
result System.Int32
리턴 bool

TryParseWoopsa() 공개 정적인 메소드

public static TryParseWoopsa ( string value, System.Int64 &result ) : bool
value string
result System.Int64
리턴 bool

TryParseWoopsa() 공개 정적인 메소드

public static TryParseWoopsa ( string value, UInt16 &result ) : bool
value string
result System.UInt16
리턴 bool

TryParseWoopsa() 공개 정적인 메소드

public static TryParseWoopsa ( string value, UInt32 &result ) : bool
value string
result System.UInt32
리턴 bool

TryParseWoopsa() 공개 정적인 메소드

public static TryParseWoopsa ( string value, System.UInt64 &result ) : bool
value string
result System.UInt64
리턴 bool

TryParseWoopsa() 공개 정적인 메소드

public static TryParseWoopsa ( string value, byte &result ) : bool
value string
result byte
리턴 bool

TryParseWoopsa() 공개 정적인 메소드

public static TryParseWoopsa ( string value, double &result ) : bool
value string
result double
리턴 bool

TryParseWoopsa() 공개 정적인 메소드

public static TryParseWoopsa ( string value, float &result ) : bool
value string
result float
리턴 bool

TryParseWoopsa() 공개 정적인 메소드

public static TryParseWoopsa ( string value, sbyte &result ) : bool
value string
result sbyte
리턴 bool