Methods used thoughout GREET for various purposes such as XML node manipulations, IDs creation and objects cloning
More...
|
static T | Clone< T > (T RealObject) |
| Perform a Clone of the object More...
|
|
static DateTime | ConvertFromGREETTimestamp (int timestamp) |
| Converts UNIX timestamp to DateTime More...
|
|
static int | ConvertToGREETTimestamp (DateTime date) |
| Converts DateTime to UNIX timestamp More...
|
|
static long | ConvertToGREETTimestampMillisecond (DateTime date) |
| Converts DateTime to UNIX timestamp More...
|
|
static XmlAttribute | CreateAttr (this XmlDocument xmlDoc, string name, object value, string ci_=Convenience.ci) |
| Returns a new attribute with the name and value set. More...
|
|
static XmlNode | CreateNode (this XmlDocument xmlDoc, string name, params XmlNode[] children) |
| Creates a new element node with the given name and the xmlDoc.NamespaceURI More...
|
|
static bool | NotNullNOrEmpty (this XmlAttribute attr) |
| Returns true if an attribute is not null nor empty More...
|
|
static string | ToStringFull (this double value) |
| Returns the more digits possible for a double Try to not use because it's kind of slow, expecially the line temp.Contains('E') More...
|
|
Methods used thoughout GREET for various purposes such as XML node manipulations, IDs creation and objects cloning
static T Greet.ConvenienceLib.Convenience.Clone< T > |
( |
T |
RealObject | ) |
|
|
static |
Perform a Clone of the object
- Template Parameters
-
T | The type of object being cloned. |
- Parameters
-
RealObject | The object instance to clone. |
- Returns
- The cloned object.
static DateTime Greet.ConvenienceLib.Convenience.ConvertFromGREETTimestamp |
( |
int |
timestamp | ) |
|
|
static |
Converts UNIX timestamp to DateTime
- Parameters
-
- Returns
static int Greet.ConvenienceLib.Convenience.ConvertToGREETTimestamp |
( |
DateTime |
date | ) |
|
|
static |
Converts DateTime to UNIX timestamp
- Parameters
-
- Returns
static long Greet.ConvenienceLib.Convenience.ConvertToGREETTimestampMillisecond |
( |
DateTime |
date | ) |
|
|
static |
Converts DateTime to UNIX timestamp
- Parameters
-
- Returns
static XmlAttribute Greet.ConvenienceLib.Convenience.CreateAttr |
( |
this XmlDocument |
xmlDoc, |
|
|
string |
name, |
|
|
object |
value, |
|
|
string |
ci_ = Convenience.ci |
|
) |
| |
|
static |
Returns a new attribute with the name and value set.
- Parameters
-
xmlDoc | The document to create the attribute from. |
name | The name of the attribute tag that will be displayed in the xml file. |
value | The value of the attribute as an object, value.ToString will be used to convert. |
- Returns
static XmlNode Greet.ConvenienceLib.Convenience.CreateNode |
( |
this XmlDocument |
xmlDoc, |
|
|
string |
name, |
|
|
params XmlNode[] |
children |
|
) |
| |
|
static |
Creates a new element node with the given name and the xmlDoc.NamespaceURI
- Parameters
-
xmlDoc | The document to create the node from. |
name | The name of the node which will display as a tag in the xml file. |
children | Attributes and Nodes to append to the node. |
- Returns
static bool Greet.ConvenienceLib.Convenience.NotNullNOrEmpty |
( |
this XmlAttribute |
attr | ) |
|
|
static |
Returns true if an attribute is not null nor empty
- Parameters
-
- Returns
static string Greet.ConvenienceLib.Convenience.ToStringFull |
( |
this double |
value | ) |
|
|
static |
Returns the more digits possible for a double Try to not use because it's kind of slow, expecially the line temp.Contains('E')
- Parameters
-
- Returns
The documentation for this class was generated from the following file:
- C:/Users/ddieffenthaler/Desktop/SVN/source/greet-dev/main/Lib/Convenience/Convenience.cs