System.CodeDom.CodeSnippetTypeMember Class

Represents a member of a type using a literal code fragment.

See Also: CodeSnippetTypeMember Members


public class CodeSnippetTypeMember : CodeTypeMember


System.CodeDom.CodeSnippetTypeMember can represent a member of a type using a literal code fragment that is included directly in the source without modification. This code can be included in the type declaration.

A System.CodeDom.CodeSnippetTypeMember stores a section of code, exactly in its original format, as a string. The CodeDOM does not translate literal code fragments. Literal code fragments are stored and output in their original format. CodeDOM objects that contain literal code are provided so developers can encapsulate code that is already in the target language.

The CodeSnippetTypeMember.Text property contains the literal code for the type member.


Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,