Inheritance: System.EventArgs
コード例 #1
0
		/// <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;
		}
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        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);
        }