コード例 #1
0
        protected SynthesizedImplementationMethod OpenMethodImplementation(
            MethodSymbol methodToImplement,
            string methodName            = null,
            bool hasMethodBodyDependency = false)
        {
            var result = new SynthesizedStateMachineDebuggerHiddenMethod(methodName, methodToImplement, (StateMachineTypeSymbol)F.CurrentType, null, hasMethodBodyDependency);

            F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result);
            F.CurrentFunction = result;
            return(result);
        }
コード例 #2
0
 protected SynthesizedImplementationMethod OpenMethodImplementation(
     MethodSymbol methodToImplement,
     string methodName = null,
     bool hasMethodBodyDependency = false)
 {
     var result = new SynthesizedStateMachineDebuggerHiddenMethod(methodName, methodToImplement, (StateMachineTypeSymbol)F.CurrentType, null, hasMethodBodyDependency);
     F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result);
     F.CurrentMethod = result;
     return result;
 }