Kooboo.Commerce.Search.ModelConverter.TryParseDictionaryFieldName C# (CSharp) Méthode

TryParseDictionaryFieldName() public static méthode

public static TryParseDictionaryFieldName ( string fieldName, string &propertyName, string &dictionaryKey ) : bool
fieldName string
propertyName string
dictionaryKey string
Résultat bool
        public static bool TryParseDictionaryFieldName(string fieldName, out string propertyName, out string dictionaryKey)
        {
            var match = _dictionaryFieldNameRegex.Match(fieldName);
            if (match.Success)
            {
                propertyName = match.Groups["prop"].Value;
                dictionaryKey = match.Groups["key"].Value;
                return true;
            }
            else
            {
                propertyName = null;
                dictionaryKey = null;
                return false;
            }
        }