JsonPrimitive Methods


The JsonPrimitive type exposes the following members.

  Name Description
Public method ContainsKey Throws an InvalidOperationException. (Inherited from JsonValue.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Save(Stream) Serializes the JsonPrimitive object into text-based JSON. (Overrides JsonValue.Save(Stream).)
Public method Save(TextWriter) Serializes the JsonValue CLR type into text-based JSON using a text writer. (Inherited from JsonValue.)
Public method ToString Saves (serializes) this JSON CLR type into text-based JSON. (Inherited from JsonValue.)

  Name Description
Explicit interface implemetation Private method IEnumerable.GetEnumerator This method is not supported for this base class and throws an exception. (Inherited from JsonValue.)

Community Additions