|
|
|
@ -154,16 +154,9 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms |
|
|
|
if (arguments.Length < 2) |
|
|
|
if (arguments.Length < 2) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
bool valid = false; |
|
|
|
return !arguments.Any(arg => arg is NamedArgumentExpression) && |
|
|
|
|
|
|
|
(arguments[0].GetResolveResult().Type.IsKnownType(KnownTypeCode.String) || |
|
|
|
foreach (var argument in arguments) { |
|
|
|
arguments[1].GetResolveResult().Type.IsKnownType(KnownTypeCode.String)); |
|
|
|
if (argument is NamedArgumentExpression) |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
if (argument.GetResolveResult().Type.IsKnownType(KnownTypeCode.String)) |
|
|
|
|
|
|
|
valid = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return valid; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static BinaryOperatorType? GetBinaryOperatorTypeFromMetadataName(string name) |
|
|
|
static BinaryOperatorType? GetBinaryOperatorTypeFromMetadataName(string name) |
|
|
|
|