FoodCandy!

RssDefault Class Reference

Contains default values and methods for maintaining data consistency. More...

List of all members.


Static Public Member Functions

static string Check (string input)
 Verifies the string passed is not null.
static int Check (int input)
 Verifies the int passed is greater than or equal to -1.
static Uri Check (Uri input)
 Verifies the Uri passed is not null.

Public Attributes

const string String = ""
 Default value for a string in all RSS classes.
const int Int = -1
 Default value for an int in all RSS classes.

Static Public Attributes

static readonly DateTime DateTime = DateTime.MinValue
 Default value for a DateTime in all RSS classes.
static readonly Uri Uri = new Uri("gopher://rss-net.sf.net")
 Default value for a Uri in all RSS classes.

Detailed Description

Contains default values and methods for maintaining data consistency.


Member Function Documentation

static Uri Check Uri  input  )  [static]
 

Verifies the Uri passed is not null.

Parameters:
input Uri to verify
Returns:
RssDefault.Uri if input is null, otherwise input
Method is used in all properties to prevent a null value

static int Check int  input  )  [static]
 

Verifies the int passed is greater than or equal to -1.

Parameters:
input int to verify
Returns:
RssDefault.Int if int is less than -1, else input
Method is used in properties to prevent values less than -1

static string Check string  input  )  [static]
 

Verifies the string passed is not null.

Parameters:
input string to verify
Returns:
RssDefault.String if input is null, otherwise input
Method is used in properties to prevent a null value

Member Data Documentation

readonly DateTime DateTime = DateTime.MinValue [static]
 

Default value for a DateTime in all RSS classes.

DateTime.MinValue

If an element in the RSS class library has the value of RssDefault.DateTime, consider the element as "not entered", "null", or empty.

const int Int = -1
 

Default value for an int in all RSS classes.

-1

If an element in the RSS class library has the value of RssDefault.Int, consider the element as "not entered", "null", or empty.

const string String = ""
 

Default value for a string in all RSS classes.

empty string

If an element in the RSS class library has the value of RssDefault.String, consider the element as "not entered", "null", or empty.

readonly Uri Uri = new Uri("gopher://rss-net.sf.net") [static]
 

Default value for a Uri in all RSS classes.

gopher://rss-net.sf.net

If an element in the RSS class library has the value of RssDefault.Uri, consider the element as "not entered", "null", or empty.


The documentation for this class was generated from the following file:
  • RssDefault.cs
© FoodCandy, 2006-2007, All Rights Reserved | FoodCandy | Sun Oct 7 10:48:52 2007 | Doxygen 1.4.6-NO