ToString() public method

public ToString ( ) : string
return string
 public override string ToString()
 {
     if (_product == null)
     {
         return(_comment);
     }
     return(_product.ToString());
 }
Esempio n. 2
0
        public void ToString_UseDifferentRanges_AllSerializedCorrectly()
        {
            ProductHeaderValue product = new ProductHeaderValue("IRC", "6.9");
            Assert.Equal("IRC/6.9", product.ToString());

            product = new ProductHeaderValue("product");
            Assert.Equal("product", product.ToString());
        }