C# 클래스 Opc.Ua.NumericRange

A class that stores a numeric range.
A class that stores a numeric range.
파일 보기 프로젝트 열기: OPCFoundation/UA-.NETStandardLibrary 1 사용 예제들

공개 메소드들

메소드 설명
EnsureValid ( int count ) : bool

Ensures the bounds are valid values for a collection with the specified length.

Returns false if the numeric range is out-of-bounds.

EnsureValid ( object value ) : bool

Ensures the bounds are valid values for the object passed in.

Returns false if the object is not indexable or if the numeric range is out-of-bounds.

Equals ( object obj ) : bool

Returns true if the objects are equal.

Returns true if the objects are equal.

GetHashCode ( ) : int

Returns a suitable hash code for the object.

Returns a suitable hash code for the object.

NumericRange ( int begin ) : System

Initializes the object with a begin index.

Initializes the object with a begin index.

NumericRange ( int begin, int end ) : System

Initializes the object with a begin and end indexes.

Initializes the object with a begin and end indexes.

Parse ( string textToParse ) : NumericRange

Parses a string representing a numeric range.

Parses a string representing a numeric range.

ToString ( ) : string

Returns the string representation of the object.

Returns the string representation of the object.

ToString ( string format, IFormatProvider formatProvider ) : string

Formats the numeric range as a string.

Formats the numeric range as a string.

UpdateRange ( object &dst, object src ) : Opc.Ua.StatusCode

Applies the multidimensional index range.

Validate ( string textToParse, NumericRange &range ) : ServiceResult

Parses a string representing a numeric range.

operator ( ) : bool

Returns true if the objects are equal.

Returns true if the objects are equal.

비공개 메소드들

메소드 설명
ApplyMultiRange ( object &value ) : Opc.Ua.StatusCode

Applies the multidimensional index range.

ApplyRange ( object &value ) : Opc.Ua.StatusCode

메소드 상세

EnsureValid() 공개 메소드

Ensures the bounds are valid values for a collection with the specified length.
Returns false if the numeric range is out-of-bounds.
public EnsureValid ( int count ) : bool
count int The value to check is within range
리턴 bool

EnsureValid() 공개 메소드

Ensures the bounds are valid values for the object passed in.
Returns false if the object is not indexable or if the numeric range is out-of-bounds.
public EnsureValid ( object value ) : bool
value object The value to check
리턴 bool

Equals() 공개 메소드

Returns true if the objects are equal.
Returns true if the objects are equal.
public Equals ( object obj ) : bool
obj object The object to test against this
리턴 bool

GetHashCode() 공개 메소드

Returns a suitable hash code for the object.
Returns a suitable hash code for the object.
public GetHashCode ( ) : int
리턴 int

NumericRange() 공개 메소드

Initializes the object with a begin index.
Initializes the object with a begin index.
Thrown when the parameter is less than -1
public NumericRange ( int begin ) : System
begin int The starting point of the range
리턴 System

NumericRange() 공개 메소드

Initializes the object with a begin and end indexes.
Initializes the object with a begin and end indexes.
public NumericRange ( int begin, int end ) : System
begin int The end of the range
end int The beginning of the range
리턴 System

Parse() 공개 정적인 메소드

Parses a string representing a numeric range.
Parses a string representing a numeric range.
Thrown when the numeric value of the parsed text is out of range
public static Parse ( string textToParse ) : NumericRange
textToParse string The text to parse, prior to checking it is within the allowed range
리턴 NumericRange

ToString() 공개 메소드

Returns the string representation of the object.
Returns the string representation of the object.
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

Formats the numeric range as a string.
Formats the numeric range as a string.
Thrown when a non null/nothing is passed for either parameter
public ToString ( string format, IFormatProvider formatProvider ) : string
format string (Unused) Always pass NULL/NOTHING
formatProvider IFormatProvider (Unused) Always pass NULL/NOTHING
리턴 string

UpdateRange() 공개 메소드

Applies the multidimensional index range.
public UpdateRange ( object &dst, object src ) : Opc.Ua.StatusCode
dst object
src object
리턴 Opc.Ua.StatusCode

Validate() 공개 정적인 메소드

Parses a string representing a numeric range.
public static Validate ( string textToParse, NumericRange &range ) : ServiceResult
textToParse string The text to parse, prior to checking it is within the allowed range
range NumericRange The parsed range.
리턴 ServiceResult

operator() 공개 정적인 메소드

Returns true if the objects are equal.
Returns true if the objects are equal.
public static operator ( ) : bool
리턴 bool