Example #1
0
 void VisitParameters(BindingFunction function)
 {
     foreach (var parameter in function.Parameters)
     {
         parameter.Accept(this);
     }
 }
 MethodModel CreateMethod(BindingFunction function)
 {
     return(new MethodModel
     {
         Name = String.Empty,
         IsVoid = true,
         OriginalName = function.OriginalName,
         Converter = GetConverter(function.Type),
         RefName = function.OriginalName,
         IsLenient = true,
         Parameters = function.Parameters.Select(CreateParameter).ToArray()
     });
 }
 public static void AttachAll(this BindingClass target, IEnumerable<Accessors> accessors, BindingFunction member)
 {
     foreach (var accessor in accessors)
         target.Bind(accessor, member);
 }
 MethodModel CreateMethod(BindingFunction function)
 {
     return new MethodModel
     {
         Name = String.Empty,
         IsVoid = true,
         OriginalName = function.OriginalName,
         Converter = GetConverter(function.Type),
         RefName = function.OriginalName,
         IsLenient = true,
         Parameters = function.Parameters.Select(CreateParameter).ToArray()
     };
 }
Example #5
0
 public void Bind(Accessors accessor, BindingFunction value)
 {
     _specials.Add(new KeyValuePair <Accessors, BindingFunction>(accessor, value));
 }
 void VisitParameters(BindingFunction function)
 {
     foreach (var parameter in function.Parameters)
         parameter.Accept(this);
 }
 public static void AttachAll(this BindingClass target, IEnumerable <Accessors> accessors, BindingFunction member)
 {
     foreach (var accessor in accessors)
     {
         target.Bind(accessor, member);
     }
 }