2015-06-22 5 views

ответ

0
AssemblyDefinition adef = AssemblyDefinition.ReadAssembly("x.dll"); 
TypeDefinition tdef = adef.MainModule.GetType("Class"); 
tdef.IsPublic = true; 
adef.MainModule.Write("x_updated.dll");