Aracılığıyla paylaş


MetadataBuilder.AddStateMachineMethod Yöntem

Tanım

Durum makinesi yöntemi hata ayıklama bilgilerini ekler.

public:
 void AddStateMachineMethod(System::Reflection::Metadata::MethodDefinitionHandle moveNextMethod, System::Reflection::Metadata::MethodDefinitionHandle kickoffMethod);
public void AddStateMachineMethod (System.Reflection.Metadata.MethodDefinitionHandle moveNextMethod, System.Reflection.Metadata.MethodDefinitionHandle kickoffMethod);
member this.AddStateMachineMethod : System.Reflection.Metadata.MethodDefinitionHandle * System.Reflection.Metadata.MethodDefinitionHandle -> unit
Public Sub AddStateMachineMethod (moveNextMethod As MethodDefinitionHandle, kickoffMethod As MethodDefinitionHandle)

Parametreler

moveNextMethod
MethodDefinitionHandle

Durum makinesinin MoveNext yönteminin tanıtıcısı (derleyici tarafından oluşturulan yöntem).

kickoffMethod
MethodDefinitionHandle

Başlatma yönteminin tanıtıcısı (kullanıcı tanımlı yineleyici/zaman uyumsuz yöntem).

Açıklamalar

Girdiler, ilgili MoveNext yöntem tanımlarıyla aynı sırada eklenmelidir.

Şunlara uygulanır