[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection/Emit Assemb
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection/Emit AssemblyBuilder.cs,1.6,1.7 EnumBuilder.cs,1.4,1.5 MethodBuilder.cs,1.7,1.8 TypeBuilder.cs,1.8,1.9 |
Date: |
Fri, 25 Apr 2003 01:19:57 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit
In directory subversions:/tmp/cvs-serv28941/runtime/System/Reflection/Emit
Modified Files:
AssemblyBuilder.cs EnumBuilder.cs MethodBuilder.cs
TypeBuilder.cs
Log Message:
Signature-compatibility fixes to a large number of classes.
Index: AssemblyBuilder.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit/AssemblyBuilder.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** AssemblyBuilder.cs 22 Mar 2003 05:55:13 -0000 1.6
--- AssemblyBuilder.cs 25 Apr 2003 05:19:54 -0000 1.7
***************
*** 28,31 ****
--- 28,32 ----
using System.IO;
using System.Collections;
+ using System.Resources;
using System.Reflection;
using System.Security;
***************
*** 126,129 ****
--- 127,143 ----
}
+ // Get the runtime image version that will be embedded in the assembly.
+ public override String ImageRuntimeVersion
+ {
+ get
+ {
+ // Our runtime engine versions are
different from
+ // Microsoft's, but we want to match
things up.
+ // Use a version number from one of
Microsoft's
+ // public release versions.
+ return "v1.1.4322";
+ }
+ }
+
[TODO]
public void AddResourceFile(String name, String fileName)
***************
*** 195,199 ****
}
- /*
[TODO]
public IResourceWriter DefineResource(String name, String description,
--- 209,212 ----
***************
*** 210,214 ****
throw new
NotImplementedException("DefineResource");
}
! */
[TODO]
public void DefineUnmanagedResource(byte[] resource)
--- 223,227 ----
throw new
NotImplementedException("DefineResource");
}
!
[TODO]
public void DefineUnmanagedResource(byte[] resource)
***************
*** 237,253 ****
}
- [TODO]
- public void EmbedResourceFile(String name, String fileName)
- {
- throw new
NotImplementedException("EmbedResourceFile");
- }
-
- [TODO]
- public void EmbedResourceFile(String name, String fileName,
-
ResourceAttributes attribute)
- {
- throw new
NotImplementedException("EmbedResourceFile");
- }
-
// Get a particular module within this assembly.
public ModuleBuilder GetDynamicModule(String name)
--- 250,253 ----
***************
*** 282,285 ****
--- 282,319 ----
{
throw new NotImplementedException("GetFile");
+ }
+
+ [TODO]
+ public override FileStream[] GetFiles(bool getResourceModules)
+ {
+ throw new NotImplementedException("GetFiles");
+ }
+
+ // Get information about a particular manifest resource.
+ [TODO]
+ public override ManifestResourceInfo
+ GetManifestResourceInfo(String resourceName)
+ {
+ throw new
NotImplementedException("GetManifestResourceInfo");
+ }
+
+ // Get the names of all manifest resources in this assembly.
+ public override String[] GetManifestResourceNames()
+ {
+ throw new
NotImplementedException("GetManifestResourceNames");
+ }
+
+ // Get a stream for a particular manifest resource.
+ [TODO]
+ public override Stream GetManifestResourceStream(String name)
+ {
+ throw new
NotImplementedException("GetManifestResourceNames");
+ }
+
+ // Get a stream for a particular manifest resource, scoped by a type.
+ [TODO]
+ public override Stream GetManifestResourceStream(Type type, String name)
+ {
+ throw new
NotImplementedException("GetManifestResourceStream");
}
Index: EnumBuilder.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit/EnumBuilder.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** EnumBuilder.cs 5 Apr 2003 06:28:32 -0000 1.4
--- EnumBuilder.cs 25 Apr 2003 05:19:54 -0000 1.5
***************
*** 275,282 ****
}
! // Determine if this type is a subclass of "c".
! public override bool IsSubclassOf(Type c)
{
! return builder.IsSubclassOf(c);
}
--- 275,293 ----
}
! // Determine if this is a value type.
! protected override bool IsValueTypeImpl()
{
! return true;
! }
!
! // Set a custom attribute on this enum builder.
! public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
! {
! builder.SetCustomAttribute(customBuilder);
! }
! public void SetCustomAttribute(ConstructorInfo con,
! byte[]
binaryAttribute)
! {
! builder.SetCustomAttribute(con,
binaryAttribute);
}
***************
*** 299,302 ****
--- 310,322 ----
}
+ // Get the declaring type.
+ public override Type DeclaringType
+ {
+ get
+ {
+ return builder.DeclaringType;
+ }
+ }
+
// Get the full name of this type.
public override String FullName
***************
*** 350,353 ****
--- 370,382 ----
{
return builder.Namespace;
+ }
+ }
+
+ // Get the reflected type.
+ public override Type ReflectedType
+ {
+ get
+ {
+ return builder.ReflectedType;
}
}
Index: MethodBuilder.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit/MethodBuilder.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** MethodBuilder.cs 5 Apr 2003 06:28:32 -0000 1.7
--- MethodBuilder.cs 25 Apr 2003 05:19:54 -0000 1.8
***************
*** 422,425 ****
--- 422,431 ----
}
+ // Set symbol attribute information for this method.
+ public void SetSymCustomAttribute(String name, byte[] data)
+ {
+ // We don't support symbols at present -
ignored.
+ }
+
// Get the attributes for this method.
public override MethodAttributes Attributes
Index: TypeBuilder.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit/TypeBuilder.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** TypeBuilder.cs 28 Mar 2003 01:04:15 -0000 1.8
--- TypeBuilder.cs 25 Apr 2003 05:19:54 -0000 1.9
***************
*** 1103,1106 ****
--- 1103,1114 ----
}
+ // Determine if this type is assignable from another type.
+ [TODO]
+ public override bool IsAssignableFrom(Type c)
+ {
+ // TODO
+ return base.IsAssignableFrom(c);
+ }
+
// Determine if this type is a "by reference" type.
protected override bool IsByRefImpl()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection/Emit AssemblyBuilder.cs,1.6,1.7 EnumBuilder.cs,1.4,1.5 MethodBuilder.cs,1.7,1.8 TypeBuilder.cs,1.8,1.9,
Rhys Weatherley <address@hidden> <=