MD.CloudConnect.Data.TrackingData.GetFieldAsBool C# (CSharp) Method

GetFieldAsBool() public method

public GetFieldAsBool ( string fieldName ) : bool
fieldName string
return bool
        public bool GetFieldAsBool(string fieldName)
        {
            if (fields.ContainsKey(fieldName))
            {
                return fields[fieldName].GetValueAsBool();
            }
            else throw new KeyNotFoundException(String.Format("The key {0} is not present", fieldName));
        }