зеркало из https://github.com/mono/ikvm-fork.git
- Changed name of workaround base class to make it easier to spot them.
- Added EditorBrowsable(Never) to prevent the workaround base class from showing up in intellisense.
This commit is contained in:
Родитель
fccc39b788
Коммит
d22c138c8a
|
@ -80,13 +80,14 @@ namespace IKVM.Internal
|
|||
}
|
||||
if (methods != null)
|
||||
{
|
||||
string name = "__" + Name + "__WorkaroundBaseClass";
|
||||
string name = "__WorkaroundBaseClass__." + Name;
|
||||
while (!classLoader.GetTypeWrapperFactory().ReserveName(name))
|
||||
{
|
||||
name += "_";
|
||||
name = "_" + name;
|
||||
}
|
||||
TypeBuilder typeBuilder = classLoader.GetTypeWrapperFactory().ModuleBuilder.DefineType(name, TypeAttributes.Public | TypeAttributes.Abstract, base.GetBaseTypeForDefineType());
|
||||
AttributeHelper.HideFromJava(typeBuilder);
|
||||
AttributeHelper.SetEditorBrowsableNever(typeBuilder);
|
||||
workaroundBaseClass = new WorkaroundBaseClass(typeBuilder, methods.ToArray());
|
||||
List<MethodWrapper> constructors = new List<MethodWrapper>();
|
||||
foreach (MethodWrapper mw in baseTypeWrapper.GetMethods())
|
||||
|
|
Загрузка…
Ссылка в новой задаче