Click or drag to resize

LiteralExtensionsToLiteral Method (String, INodeFactory)

Creates a new String typed literal.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static ILiteralNode ToLiteral(
	this string s,
	INodeFactory factory
)

Parameters

s
Type: SystemString
String.
factory
Type: VDS.RDFINodeFactory
Node Factory to use for Node creation.

Return Value

Type: ILiteralNode
Literal representing the string.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if the Graph/String argument is null.
See Also