ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string
Ejemplo n.º 1
0
 /// <summary>
 /// Helper function to compares this SIPURI to another specified SIPURI.
 /// </summary>
 /// <param name="other">The other.</param>
 /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
 public bool Compare(SIPURI other)
 {
     return ((ToString().ToLower()) == (other.ToString().ToLower()));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a SIP register request.
 /// </summary>
 /// <param name="aor">The address-of-record.</param>
 /// <returns>Message.</returns>
 public virtual Message CreateRegister(SIPURI aor)
 {
     if (aor != null)
     {
         RemoteParty = new Address(aor.ToString());
     }
     if (LocalParty == null)
     {
         LocalParty = new Address(RemoteParty.ToString());
     }
     Message m = CreateRequest("REGISTER");
     m.InsertHeader(new Header("", "Authorization"));
     return m;
 }