public ExposureBias(SRational srational)
 {
     if (srational != null && srational.ToInt() != 0)
     {
         this.srational = srational;
     }
     else
     {
         this.srational = new SRational();
     }
 }
        public ExposureBias(string exposureBias)
        {
            if (string.IsNullOrEmpty(exposureBias))
            {
                this.srational = new SRational();
            }
            else
            {
                // Expected format is {numerator}/{denominator}
                string[] splitString = exposureBias.Split('/');

                if (splitString.Length == 2)
                {
                    int numerator   = Convert.ToInt32(splitString[0]);
                    int denominator = Convert.ToInt32(splitString[1]);

                    this.srational = new SRational(numerator, denominator);
                }
                else
                {
                    throw new ArgumentException("Aperture was not of expected format:" + exposureBias);
                }
            }
        }
 public ExposureBias()
 {
     this.srational = new SRational();
 }