C# Class System.Xml.Xsl.XmlQueryCardinality

Cardinality of part of XmlQueryType struct is being used because enum doesn't allow members
Exibir arquivo Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
AtMost ( ) : XmlQueryCardinality

Compute the cardinality of a subset of a set of the given cardinality.

Equals ( XmlQueryCardinality other ) : bool

Strongly-typed Equals that returns true if this type and "other" type are equivalent.

Equals ( object other ) : bool

True if "other" is an XmlQueryCardinality, and this type is the exact same static type.

GetHashCode ( ) : int

Return hash code of this instance.

NeverSubset ( XmlQueryCardinality other ) : bool

Returns true if every non-None subset of this cardinality is disjoint with "other" cardinality. Here is the behavior for None, which is the inverse of the None behavior for IsSubset: None op None = false None op ~None = false ~None op None = true

ToString ( ) : string

Return the string representation of a cardinality, normalized to either ?, +, *, or "" (card 1).

ToString ( string format ) : string

Return the string representation of a cardinality, normalized to either ?, +, *, or "" (card 1).

XmlQueryCardinality ( string s ) : System.Diagnostics

Deserialization

operator ( ) : XmlQueryCardinality

Return union with other

operator ( ) : bool

Overload == operator to call Equals rather than do reference equality.

Private Methods

Method Description
IsSubset ( XmlQueryCardinality other ) : bool

Returns true if this cardinality is guaranteed to be a subset of "other".

XmlQueryCardinality ( int value ) : System.Diagnostics

Private constructor

Method Details

AtMost() public method

Compute the cardinality of a subset of a set of the given cardinality.
public AtMost ( ) : XmlQueryCardinality
return XmlQueryCardinality

Equals() public method

Strongly-typed Equals that returns true if this type and "other" type are equivalent.
public Equals ( XmlQueryCardinality other ) : bool
other XmlQueryCardinality
return bool

Equals() public method

True if "other" is an XmlQueryCardinality, and this type is the exact same static type.
public Equals ( object other ) : bool
other object
return bool

GetHashCode() public method

Return hash code of this instance.
public GetHashCode ( ) : int
return int

NeverSubset() public method

Returns true if every non-None subset of this cardinality is disjoint with "other" cardinality. Here is the behavior for None, which is the inverse of the None behavior for IsSubset: None op None = false None op ~None = false ~None op None = true
public NeverSubset ( XmlQueryCardinality other ) : bool
other XmlQueryCardinality
return bool

ToString() public method

Return the string representation of a cardinality, normalized to either ?, +, *, or "" (card 1).
public ToString ( ) : string
return string

ToString() public method

Return the string representation of a cardinality, normalized to either ?, +, *, or "" (card 1).
public ToString ( string format ) : string
format string
return string

XmlQueryCardinality() public method

Deserialization
public XmlQueryCardinality ( string s ) : System.Diagnostics
s string
return System.Diagnostics

operator() public static method

Return union with other
public static operator ( ) : XmlQueryCardinality
return XmlQueryCardinality

operator() public static method

Overload == operator to call Equals rather than do reference equality.
public static operator ( ) : bool
return bool