public void Generate(ClassGenerator generator, object context) { generator.WriteLine( "// useless comment added by user generator - '{0}', Context - '{1}'", GetType().FullName, context); generator.WriteLine(); }
private void GenerateStaticActions(ClassGenerator generator) { foreach (MethodInfo effectiveMethod in ContractDefinition.GetEffectiveMethods()) { generator.WriteLine( "private static readonly {0} {1} = typeof({2}).GetMethod(nameof({2}.{3}));", FormatType<MethodInfo>(), GetStaticActionName(effectiveMethod), FormatType(effectiveMethod.DeclaringType), effectiveMethod.Name); } }