예제 #1
0
 /// <summary>
 /// Returns true if the given string instance is not null/empty or an empty Guid, false otherwise.
 /// </summary>
 /// <param name="id">The string representation of a Guid to check.</param>
 /// <returns>See def.</returns>
 public static Boolean IsAdvisoryId(string id)
 {
     return(StringUtils.NotEmpty(id) && Guid.Empty != Guid.Parse(id));
 }
예제 #2
0
 /// <summary>
 /// Returns true if the given Guid instance is not null/empty or an empty Guid, false otherwise.
 /// </summary>
 /// <param name="id">The Guid instance to check.</param>
 /// <returns>See def.</returns>
 public static Boolean IsAdvisoryId(Guid id)
 {
     return(StringUtils.NotEmpty(id) && Guid.Empty != id);
 }