You are not logged in Log in Join
You are here: Home » Members » Brian » Python For .NET » Python for .NET Issue Tracker » Unneeded code in TypeManager.CreateType » collector_issue_contents

Log in
Name

Password

 
 
Issue 13 of Python for .NET Issue Tracker [PythonNet]
Title: Unneeded code in TypeManager.CreateType
Status: Pending Security related: No
Description: One of the TypeManager.CreateType overloads begins with: string name = "CLR." + clrType.FullName; As things stand now, there is no reason to pr...
From: glchapman on: May 22, 05 11:31
glchapman Last update: May 22, 05 11:31
Topic/class: General/bug Importance: low
Version info: v. 1, RC 1
Issue 13 Transcript
1 entry
= Request - Entry #1 by glchapman on May 22, 2005 11:31 am

One of the TypeManager.CreateType overloads begins with:

string name = "CLR." + clrType.FullName;

As things stand now, there is no reason to prepend the "CLR." because it will always be stripped off by this (a couple of lines later):

i = name.LastIndexOf('.');
if (i > -1) {
name = name.Substring(i + 1);
}