Click or drag to resize

HpSvExtensions Class

Common extension methods
Inheritance Hierarchy
SystemObject
  HP.SV.DotNetRuleApiHpSvExtensions

Namespace:  HP.SV.DotNetRuleApi
Assembly:  HP.SV.DotNetRuleApi (in HP.SV.DotNetRuleApi.dll) Version: 5.3.0.9999-localBuild
Syntax
C#
public static class HpSvExtensions

The HpSvExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleGetOrCreateTSource, TResult
Extension method allowing to recursively navigate to a child structure or leaf value in a safe manner, preventing NullReferenceException on accessing missing data.

It traverses the path sequentially. When a child structure does not exist then it is created using a default constructor. Leaf values (like number or string) are not initialized.

Array items could be addressed using constant literals or simple int variable access.

Public methodStatic memberGetValue(HpsvActivityBase, String)
Extension method allowing to get a child structure based on a string path
Public methodStatic memberGetValue(HpsvArray, String)
Extension method allowing to get a child structure based on a string path
Public methodStatic memberGetValue(HpsvObject, String)
Extension method allowing to get a child structure based on a string path
Public methodStatic memberGetValueInner(HpsvActivityBase, String, Int32)
Internal use only
Public methodStatic memberGetValueInner(HpsvArray, String, Int32)
Internal use only
Public methodStatic memberGetValueInner(HpsvObject, String, Int32)
Internal use only
Public methodStatic memberRethrow
Allows to retain the original stack trace of the exception
Top
See Also