C# Class Microsoft.CodeAnalysis.Sarif.MultiplyByPrimesHash

Multiply by primes hash calculator.
Mostra file Open project: Microsoft/sarif-sdk Class Usage Examples

Public Methods

Method Description
Add ( int item ) : void

Adds item to the calculated hash.

Add ( object item ) : void

Adds item to the calculated hash.

Equals ( object obj ) : bool

Indicates whether this instance and a specified object are equal.

GetHashCode ( ) : int

Returns the hash code for this instance.

MultiplyByPrimesHash ( ) : System.Collections

Initializes a new instance of the MultiplyByPrimesHash class.

ToString ( ) : string

Returns a human readable string describing this instance.

operator ( ) : bool

Inequality operator.

Private Methods

Method Description
AddRange ( IEnumerable items ) : void
AddRange ( IEnumerable items ) : void
AddRange ( int items ) : void

Method Details

Add() public method

Adds item to the calculated hash.
public Add ( int item ) : void
item int The item to add to the calculated hash.
return void

Add() public method

Adds item to the calculated hash.
public Add ( object item ) : void
item object The item to add to the calculated hash. If this parameter is /// null, the effect will be the same as if its /// function returns 0.
return void

Equals() public method

Indicates whether this instance and a specified object are equal.
public Equals ( object obj ) : bool
obj object Another object to compare to.
return bool

GetHashCode() public method

Returns the hash code for this instance.
public GetHashCode ( ) : int
return int

MultiplyByPrimesHash() public method

Initializes a new instance of the MultiplyByPrimesHash class.
public MultiplyByPrimesHash ( ) : System.Collections
return System.Collections

ToString() public method

Returns a human readable string describing this instance.
public ToString ( ) : string
return string

operator() public static method

Inequality operator.
public static operator ( ) : bool
return bool