trunk/src/LythumOSL.Core/Validation.cs
/// <summary>
/// Validates id:
/// Check for id is NullOrEmpty
/// Check for id equals 0 - means wrong id
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Validates id:
Check for id is NullOrEmpty
Check for id equals 0 - means wrong id
Validates id : Check for id is NullOrEmpty Check for id equals 0 - means wrong id
public static ValidationState JustValidateId (string id)
		{
			if (string.IsNullOrEmpty(id))
			{
				return ValidationState.NullOrEmpty;
			}
			else if (id.Equals ("0"))
			{
				return ValidationState.Wrong;
			}
			else
			{
				return ValidationState.Ok;
			}
		}
public static ValidationState JustValidateId ( string id ) { if ( string . IsNullOrEmpty ( id ) ) { return ValidationState . NullOrEmpty ; } else if ( id . Equals ( " " ) ) { return ValidationState . Wrong ; } else { return ValidationState . Ok ; } }
Validates id:
Check for id is NullOrEmpty
Check for id equals 0 - means wrong id
Validates id : Check for id is NullOrEmpty Check for id equals 0 - means wrong id
None
id
string
None