Esempio n. 1
0
/*		public static Size3D Parse( string source )
 *              {
 *                      Size3D empty;
 *                      IFormatProvider cultureInfo = CultureInfo.GetCultureInfo( "en-us" );
 *                      TokenizerHelper helper = new TokenizerHelper( source, cultureInfo );
 *                      string str = helper.NextTokenRequired();
 *                      if ( str == "Empty" )
 *                      {
 *                              empty = Empty;
 *                      }
 *                      else
 *                      {
 *                              empty = new Size3D( Convert.ToDouble( str, cultureInfo ), Convert.ToDouble( helper.NextTokenRequired(), cultureInfo ), Convert.ToDouble( helper.NextTokenRequired(), cultureInfo ) );
 *                      }
 *                      helper.LastTokenRequired();
 *                      return empty;
 *              }
 *
 *              public override string ToString()
 *              {
 *                      return this.ConvertToString( null, null );
 *              }
 *
 *              public string ToString( IFormatProvider provider )
 *              {
 *                      return this.ConvertToString( null, provider );
 *              }
 *
 *              string IFormattable.ToString( string format, IFormatProvider provider )
 *              {
 *                      return this.ConvertToString( format, provider );
 *              }
 *
 *              internal string ConvertToString( string format, IFormatProvider provider )
 *              {
 *                      if ( this.IsEmpty )
 *                      {
 *                              return "Empty";
 *                      }
 *                      char numericListSeparator = TokenizerHelper.GetNumericListSeparator( provider );
 *                      return string.Format( provider, "{1:" + format + "}{0}{2:" + format + "}{0}{3:" + format + "}", new object[] { numericListSeparator, this._x, this._y, this._z } );
 *              }
 */
        static Size3D()
        {
            s_empty = CreateEmptySize3D();
        }
Esempio n. 2
0
 public bool Equals(Size3D value)
 {
     return(Equals(this, value));
 }