• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IEmitter类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IEmitter的典型用法代码示例。如果您正苦于以下问题:C# IEmitter类的具体用法?C# IEmitter怎么用?C# IEmitter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IEmitter类属于命名空间,在下文中一共展示了IEmitter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1:

		/// <summary>
		/// Writes this object's state to a YAML emitter.
		/// </summary>
		/// <param name="emitter"></param>
		void IYamlSerializable.WriteYaml(IEmitter emitter)
		{
			foreach (var item in events)
			{
				emitter.Emit(item);
			}
		}
开发者ID:Cyberbanan,项目名称:Projeny,代码行数:11,代码来源:StreamFragment.cs


示例2: foreach

 /// <summary>
 /// Writes this object's state to a YAML emitter.
 /// </summary>
 void IYamlConvertible.Write(IEmitter emitter, ObjectSerializer nestedObjectSerializer)
 {
     foreach (var item in events)
     {
         emitter.Emit(item);
     }
 }
开发者ID:aaubry,项目名称:YamlDotNet,代码行数:10,代码来源:StreamFragment.cs


示例3: AfterTypesEmit

 public void AfterTypesEmit(IEmitter emitter, IList<ITypeInfo> types)
 {
     foreach (var plugin in this.Parts)
     {
         plugin.AfterTypesEmit(emitter, types);
     }
 }
开发者ID:txdv,项目名称:Builder,代码行数:7,代码来源:Plugins.cs


示例4: Enter

        public override bool Enter(IObjectDescriptor value, IEmitter context)
        {
            var typeConverter = typeConverters.FirstOrDefault(t => t.Accepts(value.Type));
            if (typeConverter != null)
            {
                typeConverter.WriteYaml(context, value.Value, value.Type);
                return false;
            }

            var convertible = value.Value as IYamlConvertible;
            if (convertible != null)
            {
                convertible.Write(context, nestedObjectSerializer);
                return false;
            }

            #pragma warning disable 0618 // IYamlSerializable is obsolete
            var serializable = value.Value as IYamlSerializable;
            if (serializable != null)
            {
                serializable.WriteYaml(context);
                return false;
            }
            #pragma warning restore

            return base.Enter(value, context);
        }
开发者ID:aaubry,项目名称:YamlDotNet,代码行数:27,代码来源:CustomSerializationObjectGraphVisitor.cs


示例5: AfterEmit

 public void AfterEmit(IEmitter emitter, ITranslator translator)
 {
     foreach (var plugin in this.Parts)
     {
         plugin.AfterEmit(emitter, translator);
     }
 }
开发者ID:GavinHwa,项目名称:Bridge,代码行数:7,代码来源:Plugins.cs


示例6: ExpressionListBlock

 public ExpressionListBlock(IEmitter emitter, IEnumerable<Expression> expressions, Expression paramArg)
     : base(emitter, null)
 {
     this.Emitter = emitter;
     this.Expressions = expressions;
     this.ParamExpression = paramArg;
 }
开发者ID:txdv,项目名称:Builder,代码行数:7,代码来源:ExpressionListBlock.cs


示例7: AfterTypeEmit

 public void AfterTypeEmit(IEmitter emitter, ITypeInfo type)
 {
     foreach (var plugin in this.Parts)
     {
         plugin.AfterTypeEmit(emitter, type);
     }
 }
开发者ID:txdv,项目名称:Builder,代码行数:7,代码来源:Plugins.cs


示例8: ConstructorBlock

 public ConstructorBlock(IEmitter emitter, ITypeInfo typeInfo, bool staticBlock)
     : base(emitter, typeInfo.TypeDeclaration)
 {
     this.Emitter = emitter;
     this.TypeInfo = typeInfo;
     this.StaticBlock = staticBlock;
 }
开发者ID:txdv,项目名称:Builder,代码行数:7,代码来源:ConstructorBlock.cs


示例9: Parser

        Token id, iprop;  // id is the current ID for the current line

        /// <summary>
        /// Create a new iCalendar parser.
        /// </summary>
        /// <param name="reader">The reader that contains the stream of text iCalendar</param>
        /// <param name="_emitter">The emitter that will transform the iCalendar elements</param>
        public Parser(StreamReader reader, IEmitter _emitter)
        {
            scanner = new Scanner(reader);
            emitter = _emitter;
            emitter.VParser = this;
            errors = new ArrayList();
        }
开发者ID:dblock,项目名称:sncore,代码行数:14,代码来源:Parser.cs


示例10: ExpressionListBlock

 public ExpressionListBlock(IEmitter emitter, IEnumerable<Expression> expressions, Expression paramArg, InvocationExpression invocation = null)
     : base(emitter, null)
 {
     this.Emitter = emitter;
     this.Expressions = expressions;
     this.ParamExpression = paramArg;
     this.InvocationExpression = invocation;
 }
开发者ID:RashmiPankaj,项目名称:Bridge,代码行数:8,代码来源:ExpressionListBlock.cs


示例11: Emit

 public override void Emit(MappingStartEventInfo eventInfo, IEmitter emitter)
 {
     if(tagMappings.ContainsKey(eventInfo.Source.Type))
     {
         eventInfo.Tag = tagMappings[eventInfo.Source.Type];
     }
     base.Emit(eventInfo, emitter);
 }
开发者ID:aaubry,项目名称:YamlDotNet,代码行数:8,代码来源:CustomTagEventEmitter.cs


示例12: Add

 public EmitComposite Add(IEmitter node)
 {
     if (node.IsNotNull())
     {
         _nodes.Add(node);
     }
     return this;
 }
开发者ID:DeanMilojevic,项目名称:TinyMapper,代码行数:8,代码来源:EmitComposite.cs


示例13: CustomSerializationObjectGraphVisitor

		public CustomSerializationObjectGraphVisitor(IEmitter emitter, IObjectGraphVisitor nextVisitor, IEnumerable<IYamlTypeConverter> typeConverters)
			: base(nextVisitor)
		{
			this.emitter = emitter;
			this.typeConverters = typeConverters != null
				? typeConverters.ToList()
				: Enumerable.Empty<IYamlTypeConverter>();
		}
开发者ID:Cyberbanan,项目名称:Projeny,代码行数:8,代码来源:CustomSerializationObjectGraphVisitor.cs


示例14: Pdp11Assembler

 public Pdp11Assembler(Pdp11Architecture arch, Address addrBase, IEmitter emitter)
 {
     this.arch = arch;
     this.BaseAddress = addrBase;
     this.emitter = emitter;
     this.Equates = new Dictionary<string, object>();
     this.symtab = new SymbolTable();
 }
开发者ID:killbug2004,项目名称:reko,代码行数:8,代码来源:Pdp11Assembler.cs


示例15: SwitchBlock

 public SwitchBlock(IEmitter emitter, CaseLabel caseLabel, string varName, bool isFirst)
     : base(emitter, caseLabel)
 {
     this.Emitter = emitter;
     this.CaseLabel = caseLabel;
     varName_ = varName;
     isFirst_ = isFirst;
 }
开发者ID:yindongfei,项目名称:bridge.lua,代码行数:8,代码来源:SwitchBlock.cs


示例16: FieldBlock

 public FieldBlock(IEmitter emitter, ITypeInfo typeInfo, bool staticBlock, bool fieldsOnly)
     : base(emitter, typeInfo.TypeDeclaration)
 {
     this.Emitter = emitter;
     this.TypeInfo = typeInfo;
     this.StaticBlock = staticBlock;
     this.FieldsOnly = fieldsOnly;
     this.Injectors = new List<string>();
 }
开发者ID:txdv,项目名称:Builder,代码行数:9,代码来源:FieldBlock.cs


示例17: Serialize

        public void Serialize(IEmitter emitter, object graph)
        {
            if (emitter == null)
            {
                throw new ArgumentNullException("emitter");
            }

            EmitDocument(emitter, new ObjectDescriptor(graph, graph != null ? graph.GetType() : typeof(object), typeof(object)));
        }
开发者ID:vwxyzh,项目名称:Zhenway.YamlSerializations,代码行数:9,代码来源:YamlSerializer.cs


示例18: InlineArgumentsBlock

        public InlineArgumentsBlock(IEmitter emitter, ArgumentsInfo argsInfo, string inline)
            : base(emitter, argsInfo.Expression)
        {
            this.Emitter = emitter;
            this.ArgumentsInfo = argsInfo;
            this.InlineCode = inline;

            argsInfo.AddExtensionParam();
        }
开发者ID:GavinHwa,项目名称:Bridge,代码行数:9,代码来源:InlineArgumentsBlock.cs


示例19: GetBaseType

        public static TypeDefinition GetBaseType(TypeDefinition type, IEmitter emitter)
        {
            if (type == null || type.BaseType == null)
            {
                return null;
            }

            return Helpers.ToTypeDefinition(type.BaseType, emitter);
        }
开发者ID:GavinHwa,项目名称:Bridge,代码行数:9,代码来源:Helpers.Cecil.cs


示例20: LambdaBlock

 public LambdaBlock(IEmitter emitter, IEnumerable<ParameterDeclaration> parameters, AstNode body, AstNode context, bool isAsync)
     : base(emitter, context)
 {
     this.Emitter = emitter;
     this.Parameters = parameters;
     this.Body = body;
     this.Context = context;
     this.IsAsync = isAsync;
 }
开发者ID:txdv,项目名称:Builder,代码行数:9,代码来源:LambdaBlock.cs



注:本文中的IEmitter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IEmployee类代码示例发布时间:2022-05-24
下一篇:
C# IEmailService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap