3rdparty/NRefactory/ICSharpCode.NRefactory.CSharp.Refactoring/CodeIssues/Synced/ConstraintViolations/InconsistentNamingIssue/NamingRule.cs
/// <summary>
/// Gets an identifier (or comma separated list of identifiers) which apply to this naming rule.
/// </summary>
Gets an identifier (or comma separated list of identifiers) which apply to this naming rule.
Gets an identifier ( or comma separated list of identifiers ) which apply to this naming rule .
public string GetPreview()
		{
			var result = new StringBuilder();
			if (RequiredPrefixes != null && RequiredPrefixes.Length > 0)
				result.Append(RequiredPrefixes [0]);
			switch (NamingStyle) {
				case NamingStyle.PascalCase:
					result.Append("PascalCase");
					break;
				case NamingStyle.PascalCaseWithLowerLetterUnderscore:
					result.Append("PascalCase_underscoreTolerant");
					break;
				case NamingStyle.PascalCaseWithUpperLetterUnderscore:
					result.Append("PascalCase_UnderscoreTolerant");
					break;
				case NamingStyle.CamelCase:
					result.Append("camelCase");
					break;
				case NamingStyle.CamelCaseWithLowerLetterUnderscore:
					result.Append("camelCase_underscoreTolerant");
					break;
				case NamingStyle.CamelCaseWithUpperLetterUnderscore:
					result.Append("camelCase_UnderscoreTolerant");
					break;
				case NamingStyle.AllUpper:
					result.Append("ALL_UPPER");
					break;
				case NamingStyle.AllLower:
					result.Append("all_Lower");
					break;
				case NamingStyle.FirstUpper:
					result.Append("First_Upper");
					break;
			}
			if (RequiredSuffixes != null && RequiredSuffixes.Length > 0)
				result.Append(RequiredSuffixes [0]);
			if (AllowedPrefixes != null) {
				string baseString = result.ToString();
				foreach (var str in AllowedPrefixes) {
					result.Append(", " + str + baseString);
				}
			}
			return result.ToString();
		}
public string GetPreview ( ) { var result = new StringBuilder ( ) ; if ( RequiredPrefixes != null && RequiredPrefixes . Length > 0 ) result . Append ( RequiredPrefixes [ 0 ] ) ; switch ( NamingStyle ) { case NamingStyle . PascalCase : result . Append ( " " ) ; break ; case NamingStyle . PascalCaseWithLowerLetterUnderscore : result . Append ( " " ) ; break ; case NamingStyle . PascalCaseWithUpperLetterUnderscore : result . Append ( " " ) ; break ; case NamingStyle . CamelCase : result . Append ( " " ) ; break ; case NamingStyle . CamelCaseWithLowerLetterUnderscore : result . Append ( " " ) ; break ; case NamingStyle . CamelCaseWithUpperLetterUnderscore : result . Append ( " " ) ; break ; case NamingStyle . AllUpper : result . Append ( " " ) ; break ; case NamingStyle . AllLower : result . Append ( " " ) ; break ; case NamingStyle . FirstUpper : result . Append ( " " ) ; break ; } if ( RequiredSuffixes != null && RequiredSuffixes . Length > 0 ) result . Append ( RequiredSuffixes [ 0 ] ) ; if ( AllowedPrefixes != null ) { string baseString = result . ToString ( ) ; foreach ( var str in AllowedPrefixes ) { result . Append ( " " + str + baseString ) ; } } return result . ToString ( ) ; }
Gets an identifier (or comma separated list of identifiers) which apply to this naming rule.
Gets an identifier ( or comma separated list of identifiers ) which apply to this naming rule .