Amazon.TraceListener.DynamoDBTraceListener.GetAttributeAsBool C# (CSharp) Method

GetAttributeAsBool() private method

private GetAttributeAsBool ( string name, bool defaultValue = false ) : bool
name string
defaultValue bool
return bool
        private bool GetAttributeAsBool(string name, bool defaultValue = false)
        {
            string value = GetAttribute(name);
            bool b;
            if (string.IsNullOrEmpty(value) || !bool.TryParse(value, out b))
                b = defaultValue;
            return b;
        }
        private int GetAttributeAsInt(string name, int defaultValue = -1)