CK.Monitoring.XmlMonitoringExtensions.GetAttributeLogFilter C# (CSharp) Method

GetAttributeLogFilter() static public method

Reads a LogFilter.
static public GetAttributeLogFilter ( this @this, string name, bool fallbackToUndefined ) : LogFilter?
@this this
name string Name of the attribute.
fallbackToUndefined bool True to return instead of null when not found.
return LogFilter?
        static public LogFilter? GetAttributeLogFilter( this XElement @this, string name, bool fallbackToUndefined )
        {
            XAttribute a = @this.Attribute( name );
            return a != null ? LogFilter.Parse( a.Value ) : (fallbackToUndefined ? LogFilter.Undefined : (LogFilter?)null);
        }