示例#1
0
 public override object ConvertFrom(
     ITypeDescriptorContext context,
     CultureInfo culture,
     object value)
 {
     if (value.GetType() == typeof(string))
     {
         return((object)Point3I.Parse((string)value));
     }
     return(base.ConvertFrom(context, culture, value));
 }
示例#2
0
 public Vector3I(Point3I from)
 {
     this.X = from.X;
     this.Y = from.Y;
     this.Z = from.Z;
 }