private static string GetAttributeReference(string attribute, Dictionary <string, string> attributeNames, ref int attributeCount) { string attributeReference; if (!InternalSDKUtils.TryFindByValue(attributeNames, attribute, StringComparer.Ordinal, out attributeReference)) { var variableName = GetVariableName(ref attributeCount); attributeReference = GetAttributeReference(variableName); attributeNames.Add(attributeReference, attribute); } return(attributeReference); }