예제 #1
0
 /// <summary>
 /// Creates an instance of <code>Dimension</code> whose width 
 /// and height are the same as for the specified dimension. 
 /// </summary>
 /// <param name="d">
 /// the specified dimension for the 
 /// <code>width</code> and 
 /// <code>height</code> values.
 /// </param>
 public Dimension(Dimension d)
     : this(d.width, d.height)
 {
 }
예제 #2
0
 /// <summary>
 /// Creates an instance of <code>Dimension</code> whose width
 /// and height are the same as for the specified dimension.
 /// </summary>
 /// <param name="d">
 /// the specified dimension for the
 /// <code>width</code> and
 /// <code>height</code> values.
 /// </param>
 public Dimension(Dimension d) : this(d.width, d.height)
 {
 }