CodeParser 類別

定義

提供 ICodeParser 介面的空白實作。Provides an empty implementation of the ICodeParser interface.

public ref class CodeParser abstract : System::CodeDom::Compiler::ICodeParser
public abstract class CodeParser : System.CodeDom.Compiler.ICodeParser
type CodeParser = class
    interface ICodeParser
Public MustInherit Class CodeParser
Implements ICodeParser
繼承
CodeParser
實作

備註

建立編譯器的開發人員可以執行此介面, 以支援設計人員剖析程式碼。Developers who build compilers can implement this interface to support code parsing by designers.

注意

此類別包含套用至所有成員之類別層級的連結要求和繼承要求。This class contains a link demand and an inheritance demand at the class level that applies to all members. 當立即呼叫端或衍生類別沒有完全信任許可權時,就會擲回。SecurityExceptionA SecurityException is thrown when either the immediate caller or the derived class does not have full-trust permission. 如需安全性需求的詳細資訊, 請參閱連結要求繼承要求For details about security demands, see Link Demands and Inheritance Demands.

建構函式

CodeParser()

初始化 CodeParser 類別的新執行個體。Initializes a new instance of the CodeParser class.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
Parse(TextReader)

編譯指定的文字資料流至 CodeCompileUnitCompiles the specified text stream into a CodeCompileUnit.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

安全性

LinkDemand
針對立即呼叫者的完全信任的。for full trust for the immediate caller. 此成員無法由部分信任程式碼使用。This class cannot be used by partially trusted code.

InheritanceDemand
適用於繼承者的完全信任的。for full trust for inheritors. 此類別無法由部分信任程式碼繼承。This class cannot be inherited by partially trusted code.

適用於