LiteralExtensionsToLiteral Method (Byte, INodeFactory) |
Creates a new Byte typed literal.
Namespace:
VDS.RDF
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax public static ILiteralNode ToLiteral(
this byte b,
INodeFactory factory
)
<ExtensionAttribute>
Public Shared Function ToLiteral (
b As Byte,
factory As INodeFactory
) As ILiteralNode
Parameters
- b
- Type: SystemByte
Byte. - factory
- Type: VDS.RDFINodeFactory
Node Factory to use for Node creation.
Return Value
Type:
ILiteralNodeLiteral representing the byte.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Byte. 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).
Remarks
Byte in .Net is actually equivalent to Unsigned Byte in XML Schema so depending on the value of the Byte the type will either be xsd:byte if it fits or xsd:usignedByte.
See Also