protected void WriteRectangle(BsonWriter writer,Rectangle value)
 {
     rectangleSerializer.Serialize(writer,typeof(Rectangle),value,null);
 }
Exemple #2
0
 public Rectangle Merge(Rectangle other)
 {
     var allPoints = new Vector[] {other.min, other.max,min,max};
     return FromPoints(allPoints);
 }
 protected void WriteRectangle(BsonWriter writer,string name,Rectangle value)
 {
     writer.WriteName(name);
     WriteRectangle(writer,value);
 }