Exemplo n.º 1
0
 public Builder WithBindValue(BindValueAttribute attr)
 {
     constructed.ReturnValueAttribute = attr;
     return(this);
 }
Exemplo n.º 2
0
        public static TMarshal BindToWire <TMarshal>(this IBinder <TMarshal> @this, object value, BindValueAttribute bindValue)
        {
            var ctx = new BindingContext <TMarshal>(ObjectBindingDirection.Out, @this.Binder)
            {
                ObjectValue = value,
                BindValue   = bindValue
            };

            @this.Binder(ctx);

            return(ctx.NativeValue);
        }