예제 #1
0
 public static Density From(Mass m, Volume v)
 {
     return(new Density(m, v));
 }
예제 #2
0
 public Density(SerializationInfo info, StreamingContext context)
 {
     _mass   = (Mass)info.GetValue(MassSerializedFieldName, typeof(Mass));
     _volume = (Volume)info.GetValue(VolumeSerializedFieldName, typeof(Volume));
 }
예제 #3
0
 /////////////////////////////////////////////////////////////////////////////
 // BOXING
 /////////////////////////////////////////////////////////////////////////////
 public Density(Mass m, Volume v)
 {
     _mass   = m;
     _volume = v;
 }