Beispiel #1
0
 /// <summary>
 /// Determines whether the specified <see cref="StringType"/> is equal to this instance.
 /// </summary>
 /// <param name="other">The other instance.</param>
 /// <returns></returns>
 public bool Equals(StringType other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Identifier, Identifier) && other.GetType() == GetType();
 }
Beispiel #2
0
 /// <summary>
 /// Determines whether [is null or empty] [the specified type].
 /// </summary>
 /// <param name="type">The type.</param>
 /// <returns>
 ///   <c>true</c> if [is null or empty] [the specified type]; otherwise, <c>false</c>.
 /// </returns>
 public static bool IsNullOrEmpty(StringType type)
 {
     return(type == null || type.IsEmpty);
 }
Beispiel #3
0
 /// <summary>
 /// Determines whether [is null or empty] [the specified type].
 /// </summary>
 /// <param name="type">The type.</param>
 /// <returns>
 ///   <c>true</c> if [is null or empty] [the specified type]; otherwise, <c>false</c>.
 /// </returns>
 public static bool IsNullOrEmpty(StringType type)
 {
     return type == null || type.IsEmpty;
 }