Example #1
0
 /// <summary>Gets the <see cref="IdentifierString.IDString"/> component of the <see cref="IdentifierString"/> representation.
 /// </summary>
 /// <param name="value">The (raw) string.</param>
 /// <returns>The <see cref="IdentifierString.IDString"/> component of the <see cref="IdentifierString"/> representation of <paramref name="value"/>.</returns>
 public static string ToIDString(this string value)
 {
     return(IdentifierString.GetIDString(value));
 }
Example #2
0
 /// <summary>Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns><c>true</c> if the current object is equal to the <paramref name="other"/> parameter; otherwise, <c>false</c>.
 /// </returns>
 public bool Equals(IdentifierString other)
 {
     return(IDString.Equals(other.IDString));
 }
        public string CreateAndGetString_ResourceNameAndResourcePropertyName_PropertyValue(string fullResourceName, string resourcePropertyName)
        {
            IdentifierString identifierString = IdentifierString.Create(fullResourceName, resourcePropertyName, Assembly.GetAssembly(typeof(IdentifierStringTests)));

            return(identifierString.String);
        }
Example #4
0
 /// <summary>Compares this instance to a specified <see cref="IdentifierString"/> object and returns an indication of their relative values.
 /// </summary>
 /// <param name="other">A <see cref="IdentifierString"/> object to compare to this instance.</param>
 /// <returns>A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has this meanings:
 /// <para>Less than zero: This instance is less than <paramref name="other"/>.</para>
 /// <para>Zero: This instance is equal to <paramref name="other"/>.</para>
 /// <para>Greater than zero: This instance is greater than <paramref name="other"/>.</para>
 /// </returns>
 /// <remarks>The <see cref="IDString"/> is used for the compare operation.</remarks>
 public int CompareTo(IdentifierString other)
 {
     return(this.IDString.CompareTo(other.IDString));
 }