CodeContent

Field: static readonly CodeContent Empty

Empty source code information.


Method: static CodeContent Parse(String)

Create CodeContent object with source code information of string type

    CodeContent code = CodeContent.Parse("#include <stdio.h> int main() { printf(\"Hello World\n\"); }");
Parameter Name Description
content Source code value of type CodeContent

Error Type: ArgumentNullException (Throws if the value is set to null.)


Property: string Value

Returns the source codes in the CodeContent object


Method: string ToString()

Returns the data as string type.


Method: object Clone()

Creates a new object with the data of type CodeContent and returns the created object in object type.


Method: bool Equals(Object)

Returns true if the given object has the same value as the CodeContent object and the data, false otherwise.

Parameter Name Description
obj Object to be compared

Method: bool Equals(CodeContent)

Returns true if the given CodeContent object has the same value as the data, false otherwise.

Parameter Name Description
other The object of type CodeContent to be compared