A class which generic helper functions that don't have a better place to be.
More...
|
static uint | IncrementIdentifier (ref long identifier) |
| Increments a identifier (wraps around if max exceeded). More...
|
|
static int | IncrementIdentifier (ref int identifier) |
| Increments a identifier (wraps around if max exceeded). More...
|
|
static long | GetTickCount () |
| Gets the tick count. More...
|
|
static TimeZoneDataType | GetTimeZoneInfo () |
| Returns the TimeZone information for the current local time. More...
|
|
static T | ParseExtension< T > (IDictionary< XmlQualifiedName, byte[]> extensions, XmlQualifiedName elementName) |
| Looks for an extension with the specified type and uses the DataContractSerializer to parse it. More...
|
|
static void | UpdateExtension< T > (IDictionary< XmlQualifiedName, byte[]> extensions, XmlQualifiedName elementName, object value) |
| Looks for an extension with the specified type and uses the DataContractSerializer to serializes its replacement. More...
|
|
static bool | Match (string target, string pattern, bool caseSensitive) |
| Checks if the target matches the patternet. More...
|
|
static object | Clone (object value) |
| Returns a deep copy of the value. More...
|
|
static bool | IsEqual (object value1, object value2) |
| Checks if two values are equal. More...
|
|
|
static long | TimeBase [get] |
| The time base used by UA encoder/decoders (Jan 1, 1601). More...
|
|
A class which generic helper functions that don't have a better place to be.
static object UnifiedAutomation.UaBase.Utils.Clone |
( |
object |
value | ) |
|
|
inlinestatic |
Returns a deep copy of the value.
static long UnifiedAutomation.UaBase.Utils.GetTickCount |
( |
| ) |
|
|
inlinestatic |
Gets the tick count.
- Returns
- The milliseconds since the process started.
Returns the TimeZone information for the current local time.
- Returns
- The TimeZone information for the current local time.
static uint UnifiedAutomation.UaBase.Utils.IncrementIdentifier |
( |
ref long |
identifier | ) |
|
|
inlinestatic |
Increments a identifier (wraps around if max exceeded).
- Parameters
-
identifier | The identifier to increment. |
- Returns
- The incremented value.
static int UnifiedAutomation.UaBase.Utils.IncrementIdentifier |
( |
ref int |
identifier | ) |
|
|
inlinestatic |
Increments a identifier (wraps around if max exceeded).
- Parameters
-
identifier | The identifier to increment. |
- Returns
- The incremented value.
static bool UnifiedAutomation.UaBase.Utils.IsEqual |
( |
object |
value1, |
|
|
object |
value2 |
|
) |
| |
|
inlinestatic |
Checks if two values are equal.
static bool UnifiedAutomation.UaBase.Utils.Match |
( |
string |
target, |
|
|
string |
pattern, |
|
|
bool |
caseSensitive |
|
) |
| |
|
inlinestatic |
Checks if the target matches the patternet.
- Parameters
-
target | The target. |
pattern | The pattern. |
caseSensitive | if set to true [case sensitive]. |
- Returns
static T UnifiedAutomation.UaBase.Utils.ParseExtension< T > |
( |
IDictionary< XmlQualifiedName, byte[]> |
extensions, |
|
|
XmlQualifiedName |
elementName |
|
) |
| |
|
inlinestatic |
Looks for an extension with the specified type and uses the DataContractSerializer to parse it.
- Template Parameters
-
- Parameters
-
extensions | The list of extensions to search. |
elementName | Name of the element (use type name if null). |
- Returns
- The deserialized extension. Null if an error occurs.
If the elementName is not null the type passed must support DataContract serialization or have the XmlRoot attribute defined.
static void UnifiedAutomation.UaBase.Utils.UpdateExtension< T > |
( |
IDictionary< XmlQualifiedName, byte[]> |
extensions, |
|
|
XmlQualifiedName |
elementName, |
|
|
object |
value |
|
) |
| |
|
inlinestatic |
Looks for an extension with the specified type and uses the DataContractSerializer to serializes its replacement.
- Template Parameters
-
T | The type of the extension. |
- Parameters
-
extensions | The list of extensions to update. |
elementName | Name of the element (use type name if null). |
value | The value. |
Adds a new extension if the it does not already exist. Deletes the extension if the value is null. The containing element must use the name and namespace uri specified by the DataContractAttribute for the type.
long UnifiedAutomation.UaBase.Utils.TimeBase |
|
staticget |
The time base used by UA encoder/decoders (Jan 1, 1601).
The documentation for this class was generated from the following file:
- D:/work/uasdknet_master/src/UaBase/Application/Utils.cs