Use string.Contains(char) instead of string.Contains(string)
with single characters
This commit is contained in:
committed by
Matthias Mailänder
parent
3bc28ba6e2
commit
af3362c62f
@@ -111,7 +111,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
|
||||
static bool IsExplicitInterfaceProperty(PropertyInfo pi)
|
||||
{
|
||||
return pi.Name.Contains(".");
|
||||
return pi.Name.Contains('.');
|
||||
}
|
||||
|
||||
void OnViolation(Type implementor, Type interfaceType, MemberInfo violator)
|
||||
|
||||
Reference in New Issue
Block a user