Ancestry.QueryProcessor.Type.TimeSpanType.EmitLiteral C# (CSharp) Method

EmitLiteral() public method

public EmitLiteral ( MethodContext method, object value ) : void
method Ancestry.QueryProcessor.Compile.MethodContext
value object
return void
        public override void EmitLiteral(MethodContext method, object value)
        {
            method.IL.Emit(OpCodes.Ldc_I8, ((TimeSpan)value).Ticks);
            method.IL.Emit(OpCodes.Newobj, ReflectionUtility.TimeSpanTicksConstructor);
        }