Bifrost.FluentValidation.MetaData.ValidationMetaDataGenerator.GetKeyForMember C# (CSharp) Method

GetKeyForMember() private method

private GetKeyForMember ( string parentKey, bool isParentConcept, bool isParentModelRule, IPropertyValidator>.IGrouping member, bool isModelRule ) : string
parentKey string
isParentConcept bool
isParentModelRule bool
member IPropertyValidator>.IGrouping
isModelRule bool
return string
        string GetKeyForMember(string parentKey, bool isParentConcept, bool isParentModelRule, IGrouping<string, IPropertyValidator> member, bool isModelRule)
        {
            var currentKey = string.Empty;
            if (isParentConcept || isParentModelRule || isModelRule)
                currentKey = parentKey;
            else
                currentKey = string.IsNullOrEmpty(parentKey) ? member.Key : string.Format("{0}.{1}", parentKey, member.Key.ToCamelCase());
            return currentKey;
        }