LiteralExtensions.ToLiteral Method (SByte, INodeFactory) |
Creates a new Byte typed literal.
Namespace:
VDS.RDF
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntaxpublic static ILiteralNode ToLiteral(
this sbyte b,
INodeFactory factory
)
<ExtensionAttribute>
Public Shared Function ToLiteral (
b As SByte,
factory As INodeFactory
) As ILiteralNode
Parameters
- b
- Type: System.SByte
Byte. - factory
- Type: VDS.RDF.INodeFactory
Node Factory to use for Node creation.
Return Value
Type:
ILiteralNodeLiteral representing the signed bytes.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SByte. 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
SByte in .Net is directly equivalent to Byte in XML Schema so the type will always be xsd:byte.
See Also