C# Class DSShared.StrInt

A Lazy Class for storing a string and an int. CompareTo operates on the string held
Inheritance: IComparable
Show file Open project: pmprog/OpenXCOM.Tools

Public Properties

Property Type Description
i int
str string

Public Methods

Method Description
CompareTo ( object other ) : int

compares the ToString value

Equals ( object other ) : bool

compares the ToString value

GetHashCode ( ) : int

returns the GetHashCode value of str

StrInt ( string str, int i ) : System

constructor

ToString ( ) : string

returns str

Method Details

CompareTo() public method

compares the ToString value
public CompareTo ( object other ) : int
other object
return int

Equals() public method

compares the ToString value
public Equals ( object other ) : bool
other object
return bool

GetHashCode() public method

returns the GetHashCode value of str
public GetHashCode ( ) : int
return int

StrInt() public method

constructor
public StrInt ( string str, int i ) : System
str string
i int
return System

ToString() public method

returns str
public ToString ( ) : string
return string

Property Details

i public property

int parameter
public int i
return int

str public property

string parameter
public string str
return string