Upsilon.Common Documentation
Upsilon.Common Documentation
Upsilon.Common Documentation
Upsilon.Common.Library
YBaseExtensions Class
YBaseExtensions Methods
GetAlphabet Method
GetBaseNumber Method
GetBases Method
GetDigitGroup Method
GetPrefix Method
YBase
Extensions
Get
Prefix Method
Returns the prefix of the given
YBase
.
Namespace:
Upsilon.Common.Library
Assembly:
Upsilon.Common.Library (in Upsilon.Common.Library.dll) Version: 2.2.2+14985a67b419f90e14e6b1bde61d18cf6cf12b27
Syntax
C#
Copy
public
static
string
GetPrefix
(
this
YBase
base
)
Parameters
base
YBase
The
YBase
to return the prefix.
Return Value
String
The prefix :
For
YBase
.None
:
string.Empty
For
YBase
.Binary
:
"0b"
For
YBase
.Octal
:
"0o"
For
YBase
.Decimal
:
"0d"
For
YBase
.Hexadecimal
:
"0x"
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
YBase
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
YBaseExtensions Class
Upsilon.Common.Library Namespace
Send comments on this topic to
contact@yassinlokhat.com