myunit.cs

public class MyUnit : Unit
{ 	public void FromWa(double val)      
	{
		base.FromMeter(2.0 * val);       
	}
	
	public void FromSok(double val)      
	{
		FromWa(1.0 / 4.0 * val);           
	}
	
	public void FromHun(double val)      
	{ 		
		base.FromInch(1.0 / 8.0 * val);   
	}
	
	public double ToWa()
	{ 		
		return base.ToMeter() / 2.0;    
	}
	
	public double ToSok()
	{
		return ToWa() * 4.0;
	}
	
	public double ToHun()
	{
		return ToInch() * 8.0;
	}
}