当前位置: 首页>>代码示例>>C#>>正文


C# TracingILGenerator.TraceWriteLine方法代码示例

本文整理汇总了C#中MsgPack.Serialization.Reflection.TracingILGenerator.TraceWriteLine方法的典型用法代码示例。如果您正苦于以下问题:C# TracingILGenerator.TraceWriteLine方法的具体用法?C# TracingILGenerator.TraceWriteLine怎么用?C# TracingILGenerator.TraceWriteLine使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MsgPack.Serialization.Reflection.TracingILGenerator的用法示例。


在下文中一共展示了TracingILGenerator.TraceWriteLine方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LoadValue

		public override void LoadValue( TracingILGenerator il, bool shouldBeAddress )
		{
			il.TraceWriteLine( "// Load->: {0}", this );
			this.DoConditionalInstruction(
				il,
				() => this._thenExpression.LoadValue( il, shouldBeAddress ),
				() => this._elseExpression.LoadValue( il, shouldBeAddress )
				);
			il.TraceWriteLine( "// ->Load: {0}", this );
		}
开发者ID:msgpack,项目名称:msgpack-cli,代码行数:10,代码来源:ConditionalILConstruct.cs

示例2: StoreValue

		public override void StoreValue( TracingILGenerator il )
		{
			il.TraceWriteLine( "// Stor->: {0}", this );
			this.DoConditionalInstruction(
				il,
				() => this._thenExpression.StoreValue( il ),
				() => this._elseExpression.StoreValue( il )
				);
			il.TraceWriteLine( "// ->Stor: {0}", this );
		}
开发者ID:msgpack,项目名称:msgpack-cli,代码行数:10,代码来源:ConditionalILConstruct.cs

示例3: Evaluate

		public override void Evaluate( TracingILGenerator il )
		{
			il.TraceWriteLine( "// Eval->: {0}", this );
			this.DoConditionalInstruction(
				il,
				() => this._thenExpression.Evaluate( il ),
				() => this._elseExpression.Evaluate( il )
				);
			il.TraceWriteLine( "// ->Eval: {0}", this );
		}
开发者ID:msgpack,项目名称:msgpack-cli,代码行数:10,代码来源:ConditionalILConstruct.cs

示例4: Evaluate

		public override void Evaluate( TracingILGenerator il )
		{
			il.TraceWriteLine( "// Eval->: {0}", this );

			foreach ( var statement in this._statements )
			{
				statement.Evaluate( il );
			}

			il.TraceWriteLine( "// ->Eval: {0}", this );
		}
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:11,代码来源:SequenceILConstruct.cs

示例5: Evaluate

		public override void Evaluate( TracingILGenerator il )
		{
			if ( this._isLocal && this._index < 0 )
			{
				il.TraceWriteLine( "// Eval->: {0}", this );

				this._index = il.DeclareLocal( this.ContextType.ResolveRuntimeType(), this._name ).LocalIndex;

				il.TraceWriteLine( "// ->Eval: {0}", this );
			}
		}
开发者ID:msgpack,项目名称:msgpack-cli,代码行数:11,代码来源:VariableILConstruct.cs

示例6: Branch

		public sealed override void Branch( TracingILGenerator il, Label @else )
		{
			il.TraceWriteLine( "// Brnc->: {0}", this );
			if ( this.ContextType != typeof( bool ) )
			{
				throw new InvalidOperationException(
					String.Format( CultureInfo.CurrentCulture, "Cannot branch with non boolean type '{0}'.", this.ContextType )
					);
			}

			this.BranchCore( il, @else );
			il.TraceWriteLine( "// ->Brnc: {0}", this );
		}
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:13,代码来源:ContextfulILConstruct.cs

示例7: StoreValue

		public override void StoreValue( TracingILGenerator il )
		{
			il.TraceWriteLine( "// Stor->: {0}", this );
			if ( this._instance != null )
			{
				this._instance.LoadValue( il, this._instance.ContextType.GetIsValueType() );
			}

			this._value.LoadValue( il, false );

			il.EmitStfld( this._field );
			il.TraceWriteLine( "// ->Stor: {0}", this );
		}
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:13,代码来源:StoreFieldILConstruct.cs

示例8: LoadValue

		public override void LoadValue( TracingILGenerator il, bool shouldBeAddress )
		{
			this.Evaluate( il );
			il.TraceWriteLine( "// Load->: {0}", this );
			if ( this.ContextType.ResolveRuntimeType().GetIsValueType() && shouldBeAddress )
			{
				if ( this._isLocal )
				{
					il.EmitAnyLdloca( this._index );
				}
				else
				{
					il.EmitAnyLdarga( this._index );
				}
			}
			else
			{
				if ( this._isLocal )
				{
					il.EmitAnyLdloc( this._index );
				}
				else
				{
					il.EmitAnyLdarg( this._index );
				}
			}
			il.TraceWriteLine( "// ->Load: {0}", this );
		}
开发者ID:msgpack,项目名称:msgpack-cli,代码行数:28,代码来源:VariableILConstruct.cs

示例9: LoadValue

		public override void LoadValue( TracingILGenerator il, bool shouldBeAddress )
		{
			il.TraceWriteLine( "// Load->: {0}", this );
			if ( this._instance != null )
			{
				this._instance.LoadValue( il, this._instance.ContextType.GetIsValueType() );
			}

			if ( shouldBeAddress )
			{
				il.EmitLdflda( this._field );
			}
			else
			{
				il.EmitLdfld( this._field );
			}
			il.TraceWriteLine( "// ->Load: {0}", this );
		}
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:18,代码来源:LoadFieldILConstruct.cs

示例10: LoadValue

		public override void LoadValue( TracingILGenerator il, bool shouldBeAddress )
		{
			if ( this._statements.Length == 0 )
			{
				base.LoadValue( il, shouldBeAddress );
				return;
			}

			il.TraceWriteLine( "// Eval(Load)->: {0}", this );

			for ( var i = 0; i < this._statements.Length - 1; i++ )
			{
				this._statements[ i ].Evaluate( il );
			}

			this._statements.Last().LoadValue( il, shouldBeAddress );

			il.TraceWriteLine( "// ->Eval(Load): {0}", this );
		}
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:19,代码来源:SequenceILConstruct.cs

示例11: Branch

		public override void Branch( TracingILGenerator il, Label @else )
		{
			il.TraceWriteLine( "// Brnc->: {0}", this );
			foreach ( var expression in this._expressions )
			{
				expression.LoadValue( il, false );
				il.EmitBrfalse( @else );
			}

			il.TraceWriteLine( "// ->Brnc: {0}", this );
		}
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:11,代码来源:AndConditionILConstruct.cs

示例12: LoadValue

		public override void LoadValue( TracingILGenerator il, bool shouldBeAddress )
		{
			il.TraceWriteLine( "// Load->: {0}", this );
			this.Evaluate( il, shouldBeAddress );
			il.TraceWriteLine( "// ->Load: {0}", this );
		}
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:6,代码来源:StatementExpressionILConstruct.cs

示例13: Evaluate

		public override void Evaluate( TracingILGenerator il )
		{
			il.TraceWriteLine( "// Eval->: {0}", this );
			this.Evaluate( il, false );
			il.TraceWriteLine( "// ->Eval: {0}", this );
		}
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:6,代码来源:StatementExpressionILConstruct.cs

示例14: LoadValue

		public override void LoadValue( TracingILGenerator il, bool shouldBeAddress )
		{
			il.TraceWriteLine( "// Load->: {0}", this );
			this._operation( il, this._left, this._right );
			il.TraceWriteLine( "// ->Load: {0}", this );
		}
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:6,代码来源:BinaryOperatorILConstruct.cs

示例15: Evaluate

		public override void Evaluate( TracingILGenerator il )
		{
			il.TraceWriteLine( "// Eval->: {0}", this );
			this._operation( il, this._left, this._right );
			il.TraceWriteLine( "// ->Eval: {0}", this );
		}
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:6,代码来源:BinaryOperatorILConstruct.cs


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