EGDL2 2.1
Loading...
Searching...
No Matches
FullSerializer.fsData Class Referencesealed

A union type that stores a serialized value. The stored type can be one of six different types: null, boolean, double, Int64, string, Dictionary, or List. More...

Collaboration diagram for FullSerializer.fsData:

Public Member Functions

 fsData ()
 Creates a fsData instance that holds null.
 
 fsData (bool boolean)
 Creates a fsData instance that holds a boolean.
 
 fsData (double f)
 Creates a fsData instance that holds a double.
 
 fsData (Int64 i)
 Creates a new fsData instance that holds an integer.
 
 fsData (string str)
 Creates a fsData instance that holds a string.
 
 fsData (Dictionary< string, fsData > dict)
 Creates a fsData instance that holds a dictionary of values.
 
 fsData (List< fsData > list)
 Creates a fsData instance that holds a list of values.
 
override bool Equals (object obj)
 Determines whether the specified object is equal to the current object.
 
bool Equals (fsData other)
 Determines whether the specified object is equal to the current object.
 
override int GetHashCode ()
 Returns a hash code for this instance.
 

Static Public Member Functions

static fsData CreateDictionary ()
 Helper method to create a fsData instance that holds a dictionary.
 
static fsData CreateList ()
 Helper method to create a fsData instance that holds a list.
 
static fsData CreateList (int capacity)
 Helper method to create a fsData instance that holds a list with the initial capacity.
 
static bool operator== (fsData a, fsData b)
 Returns true iff a == b.
 
static bool operator!= (fsData a, fsData b)
 Returns true iff a != b.
 

Properties

bool IsNull [get]
 Returns true if this fsData instance maps back to null.
 
bool IsDouble [get]
 Returns true if this fsData instance maps back to a double.
 
bool IsInt64 [get]
 Returns true if this fsData instance maps back to an Int64.
 
bool IsBool [get]
 Returns true if this fsData instance maps back to a boolean.
 
bool IsString [get]
 Returns true if this fsData instance maps back to a string.
 
bool IsDictionary [get]
 Returns true if this fsData instance maps back to a Dictionary.
 
bool IsList [get]
 Returns true if this fsData instance maps back to a List.
 
double AsDouble [get]
 Casts this fsData to a double. Throws an exception if it is not a double.
 
Int64 AsInt64 [get]
 Casts this fsData to an Int64. Throws an exception if it is not an Int64.
 
bool AsBool [get]
 Casts this fsData to a boolean. Throws an exception if it is not a boolean.
 
string AsString [get]
 Casts this fsData to a string. Throws an exception if it is not a string.
 
Dictionary< string, fsDataAsDictionary [get]
 Casts this fsData to a Dictionary. Throws an exception if it is not a Dictionary.
 
List< fsDataAsList [get]
 Casts this fsData to a List. Throws an exception if it is not a List.
 

Detailed Description

A union type that stores a serialized value. The stored type can be one of six different types: null, boolean, double, Int64, string, Dictionary, or List.

Member Function Documentation

◆ GetHashCode()

override int FullSerializer.fsData.GetHashCode ( )
inline

Returns a hash code for this instance.

Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

The documentation for this class was generated from the following file: