public static string Emit(this ISourceEmitter emitter) { if (emitter == null) { throw new ArgumentNullException(nameof(emitter)); } var builder = new StringBuilder(); emitter.Emit(builder); return(builder.ToString()); }
public NamespaceDecoratorEmitter(ISourceEmitter emitter, string namespaceName) { Emitter = emitter ?? throw new ArgumentNullException(nameof(emitter)); NamespaceName = namespaceName ?? throw new ArgumentNullException(nameof(namespaceName)); }