/// <summary> /// Called during Velocity merge to determine if when /// a #set() results in a null assignment, a warning /// is logged. /// </summary> /// <returns>true if to be logged, false otherwise</returns> internal bool ShouldLogOnNullSet(String lhs, String rhs) { if (NullSet == null) return true; NullSetEventArgs e = new NullSetEventArgs(lhs, rhs); NullSet(this, e); return e.ShouldLog; }
/// <summary> /// Called during Velocity merge to determine if when /// a #set() results in a null assignment, a warning /// is logged. /// </summary> /// <returns>true if to be logged, false otherwise</returns> internal bool ShouldLogOnNullSet(String lhs, String rhs) { if (NullSet == null) { return(true); } NullSetEventArgs e = new NullSetEventArgs(lhs, rhs); NullSet(this, e); return(e.ShouldLog); }
internal bool ShouldLogOnNullSet(string lhs, string rhs) { bool result; if (this.NullSet == null) { result = true; } else { NullSetEventArgs nullSetEventArgs = new NullSetEventArgs(lhs, rhs); this.NullSet(this, nullSetEventArgs); result = nullSetEventArgs.ShouldLog; } return(result); }