Open Tearies opened 2 hours ago
seems
internal static bool IsEventBackingFieldName(string fieldName, string eventName, out int suffixLength)
{
suffixLength = 0;
if (fieldName == eventName)
return true;
var vbSuffixLength = "Event".Length;
if (fieldName.Length == eventName.Length + vbSuffixLength && fieldName.StartsWith(eventName, StringComparison.Ordinal) && fieldName.EndsWith("Event", StringComparison.Ordinal))
{
suffixLength = vbSuffixLength;
return true;
}
return false;
}
caused this error
switch DecompilerSettings.DecompileAutomaticEvents to off . is correct.
Input code
Erroneous output
Details