SONARDOTNT-324 Handle partial classes properly