public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) { if (value == null) { throw base.GetConvertFromException(value); } string source = value as string; if (source == null) { return(base.ConvertFrom(context, culture, value)); } return(IntGrid2Z.Parse(source)); }
public void Add(IntGrid2Z rect) { Add(new IntGrid3(rect)); }
public IntGrid3(IntGrid2Z rect) : this(rect.X, rect.Y, rect.Z, rect.Columns, rect.Rows, 1) { }