public XamlILNodeEmitResult Emit(XamlEmitContext <IXamlILEmitter, XamlILNodeEmitResult> context, IXamlILEmitter codeGen) { codeGen .Ldc_R8(_gridLength.Value) .Ldc_I4((int)_gridLength.GridUnitType) .Newobj(_types.GridLengthConstructorValueType); return(XamlILNodeEmitResult.Type(0, Type.GetClrType())); }
public XamlILNodeEmitResult Emit(XamlEmitContext <IXamlILEmitter, XamlILNodeEmitResult> context, IXamlILEmitter codeGen) { foreach (var value in _values) { codeGen.Ldc_R8(value); } codeGen.Newobj(_constructor); return(XamlILNodeEmitResult.Type(0, Type.GetClrType())); }