Value Class
Represents a value of any ValueType.
Inheritance Hierarchy
System.Object
TcHmiSrv.Core.Value
TcHmiSrv.Core.Tools.Json.JsonValue
Namespace: TcHmiSrv.Core
Assembly: TcHmiSrvExtNet.Core (in
TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0
Syntax
C#
public class Value : ICollection, IEnumerable,
IConvertible, IDictionary, IDictionary<string, Value>,
ICollection<KeyValuePair<string, Value>>, IEnumerable<KeyValuePair<string, Value>>,
IList<Value>, ICollection<Value>, IEnumerable<Value>,
IReadOnlyCollection<Value>, IReadOnlyDictionary<string, Value>,
IReadOnlyCollection<KeyValuePair<string, Value>>, IComparable<Value>,
ICopyable<Value>, IDeepCopyable<Value>, IShallowCopyable<Value>,
IEquatable<Value>, IComparable<bool>, IComparable<byte>,
IComparable<sbyte>, IComparable<char>, IComparable<decimal>,
IComparable<short>, IComparable<ushort>, IComparable<int>,
IComparable<uint>, IComparable<long>, IComparable<ulong>,
IComparable<float>, IComparable<double>, IComparable<string>,
IComparable<Access>, IComparable<Alarm>, IComparable<byte[]>,
IComparable<Event>, IComparable<Message>, IComparable<Severity>,
IComparable<DateTime>, IComparable<TimeSpan>, IEquatable<bool>,
IEquatable<byte>, IEquatable<sbyte>, IEquatable<char>,
IEquatable<decimal>, IEquatable<short>, IEquatable<ushort>,
IEquatable<int>, IEquatable<uint>, IEquatable<long>,
IEquatable<ulong>, IEquatable<float>, IEquatable<double>,
IEquatable<string>, IEquatable<Access>, IEquatable<Alarm>,
IEquatable<byte[]>, IEquatable<Event>, IEquatable<Message>,
IEquatable<Severity>, IEquatable<DateTime>, IEquatable<TimeSpan>,
IExchangeable<Value>
The Value type exposes the following members.
Constructors
|
Name |
Description |
---|---|---|
|
Initializes a new instance of the Value class. | |
|
Initializes a new instance of the Value class with the specified Boolean value. | |
|
Initializes a new instance of the Value class with the specified Byte. | |
|
Initializes a new instance of the Value class with the specified Bytes. | |
|
Initializes a new instance of the Value class with the specified Char. | |
|
Initializes a new instance of the Value class with the specified IDictionary.TKey, TValue.. | |
|
Initializes a new instance of the Value class with the specified DateTime. | |
|
Initializes a new instance of the Value class with the specified Decimal value. | |
|
Initializes a new instance of the Value class with the specified Double-precision floating-point number. | |
|
Initializes a new instance of the Value class with the specified Int16 integer. | |
|
Initializes a new instance of the Value class with the specified Int32. | |
|
Initializes a new instance of the Value class with the specified Int64 integer. | |
|
Initializes a new instance of the Value class with the specified SByte. | |
|
Initializes a new instance of the Value class with the specified Single-precision floating-point number. | |
|
Initializes a new instance of the Value class with the specified String. | |
|
Initializes a new instance of the Value class with the specified TimeSpan. | |
|
Initializes a new instance of the Value class with the specified UInt16 integer. | |
|
Initializes a new instance of the Value class with the specified UInt32. | |
|
Initializes a new instance of the Value class with the specified UInt64 integer. | |
|
Initializes a new instance of the Value class with the specified Access. | |
|
Initializes a new instance of the Value class with the specified Alarm. | |
|
Initializes a new instance of the Value class with the specified Event. | |
|
Initializes a new instance of the Value class with the specified Message. | |
|
Initializes a new instance of the Value class with the specified Severity. | |
|
Initializes a new instance of the Value class with the specified IEnumerable.T.. | |
|
Initializes a new instance of the Value class with the specified IEnumerable.T.. | |
|
Initializes a new instance of the Value class with the specified Array. |
Properties
|
Name |
Description |
---|---|---|
|
Contains the total number of Values the internal data structure can hold without resizing. | |
|
Gets a value that indicates whether the Value contains a JSON String. | |
|
Gets the number of Values contained in the Value. | |
|
Gets a value that indicates whether the Value is an Array. | |
|
Gets a value that indicates whether the Value is empty. | |
| ||
|
Gets a value that indicates whether Type equals Map or Struct. | |
| ||
|
Gets a value that indicates whether Type equals Int32, Double or Int64. | |
|
Gets a value that indicates whether the Value is read-only. | |
| ||
| ||
|
Gets or sets the Value at the specified index. | |
|
Gets or sets the Value with the specified key. | |
|
Gets an ICollection.T. containing the keys of the Value. | |
|
Gets the total number of elements in all the dimensions of the Array. | |
|
Gets a 64-bit integer that represents the total number of elements in all the dimensions of the Array. | |
| ||
|
Contains the ValueType of the Value. | |
|
Gets an ICollection.T. containing the Values in the Value. |
Methods
|
Name |
Description |
---|---|---|
|
Adds a KeyValuePair.TKey, TValue. to the Value. | |
|
Adds the specified Value to the Value. | |
|
Adds a Value with the specified key to the Value. | |
|
Adds a Value with the specified key to the Value if the key does not already exist, or updates a Value in the Value if the key already exists. | |
|
Adds the specified Values to the end of the Value. | |
|
Changes the Type of this Value to the specified ValueType and adjusts the containing data. | |
|
Removes all Values from the Value. | |
|
Compares the current Value with another Boolean value and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Boolean value. | |
|
Compares the current Value with another Byte and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Byte. | |
|
Compares the current Value with other Bytes and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Bytes. | |
|
Compares the current Value with another Char and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Char. | |
|
Compares the current Value with another DateTime and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other DateTime. | |
|
Compares the current Value with another Decimal value and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Decimal value. | |
|
Compares the current Value with another Double-precision floating-point number and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Double-precision floating-point number. | |
|
Compares the current Value with another Int16 and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Int16. | |
|
Compares the current Value with another Int32 and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Int32. | |
|
Compares the current Value with another Int64 and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Int64. | |
|
Compares the current Value with another SByte and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other SByte. | |
|
Compares the current Value with another Single-precision floating-point number and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Single-precision floating-point number. | |
|
Compares the current Value with another String and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other String. | |
|
Compares the current Value with another TimeSpan and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other TimeSpan. | |
|
Compares the current Value with another UInt16 and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other UInt16. | |
|
Compares the current Value with another UInt32 and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other UInt32. | |
|
Compares the current Value with another UInt64 and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other UInt64. | |
|
Compares the current Value with another Access and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Access. | |
|
Compares the current Value with another Alarm and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Alarm. | |
|
Compares the current Value with another Event and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Event. | |
|
Compares the current Value with another Message and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Message. | |
|
Compares the current Value with another Severity and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Severity. | |
|
Compares the current Value with another Value and returns an integer that indicates whether the current Value precedes, follows, or occurs in the same position in the sort order as the other Value. | |
|
Determines whether the Value contains the specified KeyValuePair.TKey, TValue.. | |
|
Determines whether the Value contains the specified Value. | |
|
Determines whether the Value contains a Value with the specified key. | |
|
Copies the KeyValuePair.TKey, TValue.s of the Value to the specified Array, starting at the specified index. | |
|
Copies the Values of the Value to the specified Array, starting at the specified index. | |
|
Creates a new object that is a deep copy of the current Value. | |
|
Indicates whether the current Value is equal to another Boolean value. | |
|
Indicates whether the current Value is equal to another Byte. | |
|
Indicates whether the current Value is equal to another Array of Bytes. | |
|
Indicates whether the current Value is equal to another Char. | |
|
Indicates whether the current Value is equal to another DateTime. | |
|
Indicates whether the current Value is equal to another Decimal value. | |
|
Indicates whether the current Value is equal to another Double-precision floating-point number. | |
|
Indicates whether the current Value is equal to another Int16. | |
|
Indicates whether the current Value is equal to another Int32. | |
|
Indicates whether the current Value is equal to another Int64. | |
|
Determines whether the specified Object is equal to the current Value. (Overrides Object.Equals(Object).) | |
|
Indicates whether the current Value is equal to another SByte. | |
|
Indicates whether the current Value is equal to another Single-precision floating-point number. | |
|
Indicates whether the current Value is equal to another String. | |
|
Indicates whether the current Value is equal to another TimeSpan. | |
|
Indicates whether the current Value is equal to another UInt16. | |
|
Indicates whether the current Value is equal to another UInt32. | |
|
Indicates whether the current Value is equal to another UInt64. | |
|
Indicates whether the current Value is equal to another Access. | |
|
Indicates whether the current Value is equal to another Alarm. | |
|
Indicates whether the current Value is equal to another Event. | |
|
Indicates whether the current Value is equal to another Message. | |
|
Indicates whether the current Value is equal to another Severity. | |
|
Indicates whether the current Value is equal to another Value. | |
|
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
|
Converts an instance of the Value class to the appropriate Access. | |
|
Converts an Alarm to the appropriate instance of the Value class. | |
|
Converts a Boolean value to the appropriate instance of the Value class. | |
|
Converts an Byte to the appropriate instance of the Value class. | |
|
Converts an array of Bytes to the appropriate instance of the Value class. | |
|
Converts a Char to the appropriate instance of the Value class. | |
|
Converts an instance of the DateTime class to the appropriate instance of the Value class. | |
|
Converts a Decimal value to the appropriate instance of the Value class. | |
|
Converts a Double-precision floating-point number to the appropriate instance of the Value class. | |
|
Converts an Event to the appropriate instance of the Value class. | |
|
Converts an Int16 to the appropriate instance of the Value class. | |
|
Converts an Int32 to the appropriate instance of the Value class. | |
|
Converts a Int64 to the appropriate instance of the Value class. | |
|
Converts an Message to the appropriate instance of the Value class. | |
|
Converts an SByte to the appropriate instance of the Value class. | |
|
Converts a Severity to the appropriate instance of the Value class. | |
|
Converts a Single-precision floating-point number to the appropriate instance of the Value class. | |
|
Converts a String to the appropriate instance of the Value class. | |
|
Converts an instance of the TimeSpan class to the appropriate instance of the Value class. | |
|
Converts an UInt16 to the appropriate instance of the Value class. | |
|
Converts an UInt32 to the appropriate instance of the Value class. | |
|
Converts a UInt64 to the appropriate instance of the Value class. | |
|
Gets the Access of the Value. | |
|
Gets the Alarm of the Value. | |
|
Gets the Boolean value of the Value. | |
|
Gets the Boolean value of the Value, using the specified culture-specific formatting information. | |
|
Gets the Byte of the Value. | |
|
Gets the Bytes of the Value. | |
|
Gets the Char of the Value. | |
|
Gets the DateTime of the Value. | |
|
Gets the DateTime of the Value, using the specified culture-specific formatting information. | |
|
Gets the Decimal value of the Value. | |
|
Gets the Double-precision floating-point number of the Value. | |
|
Gets the Double-precision floating-point number of the Value, using the specified culture-specific formatting information. | |
|
Gets the Event of the Value. | |
|
Serves as the default hash function. (Overrides Object.GetHashCode..) | |
|
Gets the Int16 integer of the Value. | |
|
Gets the Int32 of the Value. | |
|
Gets the Int32 of the Value, using the specified culture-specific formatting information. | |
|
Gets the Int64 integer of the Value. | |
|
Gets the Int64 integer of the Value, using the specified culture-specific formatting information. | |
|
Gets the Message of the Value. | |
|
Gets the SByte of the Value. | |
|
Gets the Severity of the Value. | |
|
Gets the Single-precision floating-point number of the Value. | |
|
Gets the String of the Value. | |
|
Gets the String of the Value, using the specified culture-specific formatting information. | |
|
Gets the TimeSpan of the Value. | |
|
Gets the TimeSpan of the Value, using the specified culture-specific formatting information. | |
|
Gets the Type of the current instance. (Inherited from Object.) | |
|
Gets the TypeCode for this Value. | |
|
Gets the UInt16 integer of the Value. | |
|
Gets the UInt32 of the Value. | |
|
Gets the UInt64 integer of the Value. | |
|
Determines the index of the specified Value in the Value. | |
|
Inserts a Value to the Value at the specified index. | |
|
Creates a shallow copy of the current Object. (Inherited from Object.) | |
|
Removes the first occurrence of the specified KeyValuePair.TKey, TValue. from the Value. | |
|
Removes the Value with the specified key from the Value. | |
|
Removes the first occurrence of the specified Value from the Value. | |
|
Removes the Value at the specified index. | |
|
Removes a range of Values from the Value. | |
|
Sets the Boolean value of the Value. | |
|
Gets the Byte of the Value. | |
|
Gets the Bytes of the Value. | |
|
Gets the Char of the Value. | |
|
Gets the DateTime of the Value. | |
|
Gets the Decimal value of the Value. | |
|
Gets the Double-precision floating-point number of the Value. | |
|
Gets the Int16 integer of the Value. | |
|
Gets the Int32 of the Value. | |
|
Gets the Int64 integer of the Value. | |
|
Gets the SByte of the Value. | |
|
Gets the Single-precision floating-point number of the Value. | |
|
Gets the String of the Value. | |
|
Gets the TimeSpan of the Value. | |
|
Gets the UInt16 integer of the Value. | |
|
Gets the UInt32 of the Value. | |
|
Gets the UInt64 integer of the Value. | |
|
Gets the Access of the Value. | |
|
Gets the Alarm of the Value. | |
|
Gets the Event of the Value. | |
|
Gets the Message of the Value. | |
|
Gets the Severity of the Value. | |
|
Creates a new Value that is a shallow copy of the current Value. | |
|
Converts this instance of the Value class to the appropriate Access. | |
|
Converts this instance of the Value class to the appropriate Alarm. | |
|
Converts this instance of the Value class to the appropriate Array. | |
|
Converts this instance of the Value class to the appropriate Boolean. | |
|
Converts the Value to an equivalent Boolean value using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate Byte. | |
|
Converts the Value to an equivalent Byte using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate array of Bytes. | |
|
Converts this instance of the Value class to the appropriate Char. | |
|
Converts the Value to an equivalent Char using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate instance of the DateTime class. | |
|
Converts the Value to an equivalent DateTime using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate Decimal. | |
|
Converts the Value to an equivalent Decimal value using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate Double-precision floating-point number. | |
|
Converts the Value to an equivalent Double-precision floating-point number using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate Event. | |
|
Converts this instance of the Value class to the appropriate Int16. | |
|
Converts the Value to an equivalent Int16 integer using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate Int32. | |
|
Converts the Value to an equivalent Int32 using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate Int64. | |
|
Converts the Value to an equivalent Int64 integer using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate Message. | |
|
Converts this instance of the Value class to the appropriate SByte. | |
|
Converts the Value to an equivalent SByte using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate Severity. | |
|
Converts this instance of the Value class to the appropriate Single-precision floating-point number. | |
|
Converts the Value to an equivalent Single-precision floating-point number using the specified IFormatProvider. | |
|
Returns a String that represents the current Value. (Overrides Object.ToString..) | |
|
Converts the Value to an equivalent String using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate instance of the TimeSpan class. | |
|
Converts the Value to an equivalent Object of the specified Type using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate UInt16. | |
|
Converts the Value to an equivalent UInt16 integer using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate UInt32. | |
|
Converts the Value to an equivalent UInt32 using the specified IFormatProvider. | |
|
Converts this instance of the Value class to the appropriate UInt64. | |
|
Converts the Value to an equivalent UInt64 integer using the specified IFormatProvider. | |
|
Returns the current Value. | |
|
Gets the Value associated with the specified key. |
Operators
|
Name |
Description |
---|---|---|
|
Determines whether two instances of the Value class are equal. | |
|
Determines whether the current instance of the Value class is greater than another instance. | |
|
Determines whether the current instance of the Value class is greater than or equal to another instance. | |
|
Converts a Boolean value to the appropriate instance of the Value class. | |
|
Converts an Byte to the appropriate instance of the Value class. | |
|
Converts an array of Bytes to the appropriate instance of the Value class. | |
|
Converts a Char to the appropriate instance of the Value class. | |
|
Converts an instance of the DateTime class to the appropriate instance of the Value class. | |
|
Converts a Decimal value to the appropriate instance of the Value class. | |
|
Converts a Double-precision floating-point number to the appropriate instance of the Value class. | |
|
Converts an Int16 to the appropriate instance of the Value class. | |
|
Converts an Int32 to the appropriate instance of the Value class. | |
|
Converts a Int64 to the appropriate instance of the Value class. | |
|
Converts an SByte to the appropriate instance of the Value class. | |
|
Converts a Single-precision floating-point number to the appropriate instance of the Value class. | |
|
Converts a String to the appropriate instance of the Value class. | |
|
Converts an instance of the TimeSpan class to the appropriate instance of the Value class. | |
|
Converts an UInt16 to the appropriate instance of the Value class. | |
|
Converts an UInt32 to the appropriate instance of the Value class. | |
|
Converts a UInt64 to the appropriate instance of the Value class. | |
|
Converts an Access to the appropriate instance of the Value class. | |
|
Converts an Alarm to the appropriate instance of the Value class. | |
|
Converts an Event to the appropriate instance of the Value class. | |
|
Converts an Message to the appropriate instance of the Value class. | |
|
Converts a Severity to the appropriate instance of the Value class. | |
|
Converts an instance of the Value class to the appropriate Boolean value. | |
|
Converts an instance of the Value class to the appropriate Byte. | |
|
Converts an instance of the Value class to the appropriate SByte. | |
|
Converts an instance of the Value class to the appropriate Char. | |
|
Converts an instance of the Value class to the appropriate Int16. | |
|
Converts an instance of the Value class to the appropriate UInt16. | |
|
Converts an instance of the Value class to the appropriate Int32. | |
|
Converts an instance of the Value class to the appropriate UInt32. | |
|
Converts an instance of the Value class to the appropriate Int64. | |
|
Converts an instance of the Value class to the appropriate UInt64. | |
|
Converts an instance of the Value class to the appropriate Single-precision floating-point number. | |
|
Converts an instance of the Value class to the appropriate Double-precision floating-point number. | |
|
Converts an instance of the Value class to the appropriate String. | |
|
Converts an instance of the Value class to the appropriate Access. | |
|
Converts an instance of the Value class to the appropriate Alarm. | |
|
Converts an instance of the Value class to the appropriate Event. | |
|
Converts an instance of the Value class to the appropriate Message. | |
|
Converts an instance of the Value class to the appropriate Severity. | |
|
Converts an instance of the Value class to the appropriate instance of the DateTime class. | |
|
Converts an instance of the Value class to the appropriate instance of the TimeSpan class. | |
|
Converts an instance of the Value class to the appropriate Decimal value. | |
|
Converts an instance of the Value class to the appropriate array of Bytes. | |
|
Determines whether two instances of the Value class are not equal. | |
|
Determines whether the current instance of the Value class is less than another instance. | |
|
Determines whether the current instance of the Value class is less than or equal to another instance. |
Extension Methods
|
Name |
Description |
---|---|---|
|
Sorts the Values of a sequence according to the specified String. (Defined by ValueExtensions.) | |
|
Overloaded. Resolves the current Value by the specified Queue.T. of elements. (Defined by ValueExtensions.) | |
|
Overloaded. Resolves the current Value by the specified path. (Defined by ValueExtensions.) | |
|
Overloaded. Returns an unformatted JSON String that represents the current Value. (Defined by ValueExtensions.) | |
|
Overloaded. Returns an unformatted JSON String that represents the current Value. (Defined by ValueExtensions.) | |
|
Overloaded. Returns a JSON String that represents the current Value. (Defined by ValueExtensions.) | |
|
Returns a JsonValue that contains an unformatted JSON String representing the current Value. (Defined by ValueExtensions.) | |
|
Overloaded. Resolves the current Value by the specified Queue.T. of elements. A return value indicates whether resolving succeeded. (Defined by ValueExtensions.) | |
|
Overloaded. Resolves the current Value by the specified Queue.T. of elements. A return value indicates whether resolving succeeded. (Defined by ValueExtensions.) |