//
// (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:
//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.