public IBindingsBuilder <M> Event <F>( string eventName, Expression <Func <M, F> > expression, bool bubble = true, string format = null, params LambdaExpression[] otherExpressions) { if (expression == null) { throw (new ArgumentNullException("expression")); } if (string.IsNullOrWhiteSpace(eventName)) { throw (new ArgumentNullException("eventName")); } if (writer == null) { return(this); } if (eventStringBuilder == null) { eventStringBuilder = new StringBuilder(); } eventStringBuilder.Append(BindingsExtensions.standardString <M, F>(this, eventName, expression, format, otherExpressions)); if (!bubble) { this.Add(eventName + "Bubble: false"); } return(this); }
public IBindingsBuilder <M> Attr <F>( string attrName, Expression <Func <M, F> > expression, string format = null, params LambdaExpression[] otherExpressions) { if (expression == null) { throw (new ArgumentNullException("expression")); } if (string.IsNullOrWhiteSpace(attrName)) { throw (new ArgumentNullException("attrName")); } if (writer == null) { return(this); } if (attrStringBuilder == null) { attrStringBuilder = new StringBuilder(); } attrStringBuilder.Append(BindingsExtensions.standardString <M, F>(this, attrName, expression, format, otherExpressions)); return(this); }