2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / Microsoft.VisualBasic / Microsoft.VisualBasic / Microsoft.VisualBasic.CompilerServices / ByteType.cs
index 6cd64e2bd846aa8e72516a66d52d681efa831bbd..edb1595c32296f36916e37b81171708ae057b8b3 100644 (file)
@@ -8,10 +8,10 @@
     //
     // (C) copyright 2002 Chris J Breisch
     // 2002 Tipic, Inc (http://www.tipic.com)
-    // 2004 Novell
     //
      /*
       * Copyright (c) 2002-2003 Mainsoft Corporation.
+      * Copyright (C) 2004 Novell, Inc (http://www.novell.com)
       *
       * Permission is hereby granted, free of charge, to any person obtaining a
       * copy of this software and associated documentation files (the "Software"),
      * Class that converts objects to Byte value.
      */
 using System;
+using System.ComponentModel;
+
 namespace Microsoft.VisualBasic.CompilerServices 
 {
-       [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute] 
-       [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] 
+       [StandardModule, EditorBrowsableAttribute(EditorBrowsableState.Never)] 
        sealed public class ByteType {
+               private ByteType () {}
     
                /**
                 * The method converts given object to byte by the following logic:
@@ -79,7 +81,7 @@ namespace Microsoft.VisualBasic.CompilerServices
                                //is diff base
                                if(Value.Substring(1,1).ToUpper() == "H")
                                        Base = 16;
-                               else if(Value.Substring(1,1).ToUpper() == "B")
+                               else if(Value.Substring(1,1).ToUpper() == "O")
                                        Base = 8;
                                else {
                                        // I think we should just let convert take care of the execption.