本文整理匯總了C#中System.Drawing.Imaging.FrameDimension.ToString方法的典型用法代碼示例。如果您正苦於以下問題:C# FrameDimension.ToString方法的具體用法?C# FrameDimension.ToString怎麽用?C# FrameDimension.ToString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Drawing.Imaging.FrameDimension
的用法示例。
在下文中一共展示了FrameDimension.ToString方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Equals
public void Equals ()
{
FrameDimension fd = new FrameDimension (new Guid ("7462dc86-6180-4c7e-8e3f-ee7333a7a483"));
// equals
Assert.IsTrue (fd.Equals (FrameDimension.Page), "Page");
// but ToString differs!
Assert.AreEqual ("[FrameDimension: 7462dc86-6180-4c7e-8e3f-ee7333a7a483]", fd.ToString (), "ToString");
}
示例2: Empty
public void Empty ()
{
FrameDimension fd = new FrameDimension (Guid.Empty);
Assert.AreEqual ("00000000-0000-0000-0000-000000000000", fd.Guid.ToString (), "Guid");
Assert.AreEqual (Guid.Empty.GetHashCode (), fd.GetHashCode (), "GetHashCode");
Assert.AreEqual ("[FrameDimension: 00000000-0000-0000-0000-000000000000]", fd.ToString (), "ToString");
Assert.IsTrue (fd.Equals (new FrameDimension (Guid.Empty)), "Equals(Empty)");
Assert.IsFalse (fd.Equals (null), "Equals(null)");
}