C# Class Microsoft.CodeAnalysis.Sarif.Readers.SerializedPropertyInfo

Describes a single entry in a JSON property bag (a JSON object whose keys have arbitrary names and whose values may be any JSON values).
ファイルを表示 Open project: Microsoft/sarif-sdk Class Usage Examples

Public Methods

Method Description
Equals ( SerializedPropertyInfo other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
SerializedPropertyInfo ( string serializedValue, bool isString ) : Newtonsoft.Json.Linq

Initializes a new instance of the SerializedPropertyInfo class.

This representation allows properties to be read from JSON into memory and then round-tripped back to JSON, without storing "live" Json.NET objects. Live JSON objects hold references to their parent container, which would consume a lot of memory for objects that are part of a large JSON file.

Method Details

Equals() public method

public Equals ( SerializedPropertyInfo other ) : bool
other SerializedPropertyInfo
return bool

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

SerializedPropertyInfo() public method

Initializes a new instance of the SerializedPropertyInfo class.
This representation allows properties to be read from JSON into memory and then round-tripped back to JSON, without storing "live" Json.NET objects. Live JSON objects hold references to their parent container, which would consume a lot of memory for objects that are part of a large JSON file.
public SerializedPropertyInfo ( string serializedValue, bool isString ) : Newtonsoft.Json.Linq
serializedValue string /// The string representation of the JSON value of the property. ///
isString bool /// true if the property is a string; otherwise false. ///
return Newtonsoft.Json.Linq