Google.Maps.Location.GetAsUrlParameter C# (CSharp) Method

GetAsUrlParameter() public method

Gets the current instance as a URL encoded value.
public GetAsUrlParameter ( ) : string
return string
        public virtual string GetAsUrlParameter()
        {
            return System.Uri.EscapeDataString(this.ToString());
        }

Usage Example

Ejemplo n.º 1
0
        public void Location_with_spaces_gives_empty_url()
        {
            Location l = "    ";

            string expected = "";
            string actual   = l.GetAsUrlParameter();

            Assert.AreEqual(expected, actual);
        }
All Usage Examples Of Google.Maps.Location::GetAsUrlParameter