C# Class HelloWorld.JValueExtensions

提供针对 JSON 的扩展方法。
Mostrar archivo Open project: Ivony/HelloWorld

Public Methods

Method Description
CoordinateValue ( this value ) : Coordinate

获取坐标值

CoordinateValue ( this obj, string name ) : Coordinate

获取坐标值

GuidValue ( this value ) : Guid?

获取 GUID 类型的值

GuidValue ( this obj, string name ) : Guid?

获取 GUID 类型的值

TimeValue ( this value ) : System.TimeSpan

获取 TimeSpan 类型的值

TimeValue ( this obj, string name ) : System.TimeSpan

获取 TimeSpan 类型的值

Method Details

CoordinateValue() public static method

获取坐标值
public static CoordinateValue ( this value ) : Coordinate
value this
return Coordinate

CoordinateValue() public static method

获取坐标值
public static CoordinateValue ( this obj, string name ) : Coordinate
obj this
name string
return Coordinate

GuidValue() public static method

获取 GUID 类型的值
public static GuidValue ( this value ) : Guid?
value this
return Guid?

GuidValue() public static method

获取 GUID 类型的值
public static GuidValue ( this obj, string name ) : Guid?
obj this
name string
return Guid?

TimeValue() public static method

获取 TimeSpan 类型的值
public static TimeValue ( this value ) : System.TimeSpan
value this
return System.TimeSpan

TimeValue() public static method

获取 TimeSpan 类型的值
public static TimeValue ( this obj, string name ) : System.TimeSpan
obj this
name string
return System.TimeSpan