Struct Time
Implements
System.Xml.Serialization.IXmlSerializable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: EC.ProductsAndPricing.ServiceContract.dll
Syntax
public struct Time : IEquatable<Time>, IComparable<Time>, IXmlSerializable
Constructors
View Source
Time(Int32, Int32, Int32)
Declaration
public Time(int hour, int minute, int second)
Parameters
Type |
Name |
Description |
System.Int32 |
hour |
The number of hours
|
System.Int32 |
minute |
The nuumber of minutes
|
System.Int32 |
second |
The number of seconds
|
View Source
Time(TimeSpan)
Declaration
public Time(TimeSpan timeSpan)
Parameters
Type |
Name |
Description |
System.TimeSpan |
timeSpan |
|
Properties
View Source
Hour
Number of hours into the day
Declaration
public int Hour { get; set; }
Property Type:
System.Int32
View Source
Minute
Declaration
public int Minute { get; set; }
Property Type:
System.Int32
View Source
Second
Declaration
public int Second { get; set; }
Property Type:
System.Int32
Methods
View Source
CompareTo(Time)
Declaration
public int CompareTo(Time other)
Parameters
Type |
Name |
Description |
Time |
other |
|
Returns
Type |
Description |
System.Int32 |
|
Implements
System.IComparable<T>.CompareTo(T)
View Source
Equals(Time)
Declaration
public bool Equals(Time other)
Parameters
Type |
Name |
Description |
Time |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
View Source
GetSchema()
Declaration
public XmlSchema GetSchema()
Returns
Type |
Description |
System.Xml.Schema.XmlSchema |
|
Implements
System.Xml.Serialization.IXmlSerializable.GetSchema()
View Source
Parse(String)
Declaration
public static Time Parse(string str)
Parameters
Type |
Name |
Description |
System.String |
str |
|
Returns
View Source
ReadXml(XmlReader)
Declaration
public void ReadXml(XmlReader reader)
Parameters
Type |
Name |
Description |
System.Xml.XmlReader |
reader |
|
Implements
System.Xml.Serialization.IXmlSerializable.ReadXml(System.Xml.XmlReader)
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
View Source
TryParse(String, out Time)
Declaration
public static bool TryParse(string str, out Time time)
Parameters
Type |
Name |
Description |
System.String |
str |
|
Time |
time |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
WriteXml(XmlWriter)
Declaration
public void WriteXml(XmlWriter writer)
Parameters
Type |
Name |
Description |
System.Xml.XmlWriter |
writer |
|
Implements
System.Xml.Serialization.IXmlSerializable.WriteXml(System.Xml.XmlWriter)
Operators
View Source
Equality(Time, Time)
Declaration
public static bool operator ==(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
GreaterThan(Time, Time)
Declaration
public static bool operator>(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
GreaterThanOrEqual(Time, Time)
Declaration
public static bool operator >=(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Inequality(Time, Time)
Declaration
public static bool operator !=(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
LessThan(Time, Time)
Declaration
public static bool operator <(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
LessThanOrEqual(Time, Time)
Declaration
public static bool operator <=(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
Type |
Description |
System.Boolean |
|