* *.cs: Updates for net 2.0 beta 2.
svn path=/trunk/mcs/; revision=45571
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyAlgorithmIdAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyCompanyAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyConfigurationAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyCopyrightAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyCultureAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyDefaultAliasAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyDelaySignAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyDescriptionAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyFileVersionAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyFlagsAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyInformationalVersionAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyKeyFileAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyKeyNameAttribute : Attribute
{
// Field
#endif
#if NET_2_0
+ [Obsolete ("This will be removed before Whidbey ships. There will be no replacement for Whidbey.")]
Library = 0x2,
+ [Obsolete ("This will be removed before Whidbey ships. There will be no replacement for Whidbey.")]
AppDomainPlatform = 0x4,
+ [Obsolete ("This will be removed before Whidbey ships. There will be no replacement for Whidbey.")]
ProcessPlatform = 0x6,
+ [Obsolete ("This will be removed before Whidbey ships. There will be no replacement for Whidbey.")]
SystemPlatform = 0x8,
+ [Obsolete ("This will be removed before Whidbey ships. There will be no replacement for Whidbey.")]
LongevityMask = 0xe,
+ [Obsolete ("This will be removed before Whidbey ships. There will be no replacement for Whidbey.")]
LongevityUnspecified = 0x0,
EnableJITcompileOptimizer = 0x4000,
EnableJITcompileTracking = 0x8000
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyProductAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyTitleAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyTrademarkAttribute : Attribute
{
// Field
{
#if NET_2_0
[ComVisible (true)]
-#endif
+ [AttributeUsage (AttributeTargets.Assembly, Inherited=false)]
+#else
[AttributeUsage (AttributeTargets.Assembly)]
+#endif
public sealed class AssemblyVersionAttribute : Attribute
{
// Field
+2005-06-07 Zoltan Varga <vargaz@freemail.hu>
+
+ * *.cs: Updates for net 2.0 beta 2.
+
2005-06-06 Zoltan Varga <vargaz@freemail.hu>
* Assembly.cs ExceptionHandlingClause.cs: Fix build.
protected ConstructorInfo() {
}
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public override MemberTypes MemberType {
get {return MemberTypes.Constructor;}
}
}
#if NET_2_0 || BOOTSTRAP_NET_2_0
+ [Obsolete ("Use FieldInfo.GetOptionalCustomModifiers().")]
public virtual Type[] OptionalCustomModifiers {
get {
- throw new NotImplementedException ();
+ return GetOptionalCustomModifiers ();
}
}
+ [Obsolete ("Use FieldInfo.GetRequiredCustomModifiers().")]
public virtual Type[] RequiredCustomModifiers {
get {
- throw new NotImplementedException ();
+ return GetRequiredCustomModifiers ();
}
}
+
+ [MonoTODO]
+ public virtual Type[] GetOptionalCustomModifiers () {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual Type[] GetRequiredCustomModifiers () {
+ throw new NotImplementedException ();
+ }
#endif
#if NET_2_0 || BOOTSTRAP_NET_2_0
using System.Runtime.InteropServices;
namespace System.Reflection {
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public struct InterfaceMapping {
#if NET_2_0
/// </summary>
#if NET_2_0
[ComVisible (true)]
-#endif
+#else
[Flags]
+#endif
public enum MethodImplAttributes {
/// <summary>
return field;
}
-#if NET_2_0 || BOOTSTRAP_NET_2_0
- [MonoTODO]
- public override Type[] OptionalCustomModifiers {
- get {
- throw new NotImplementedException ();
- }
- }
-
- [MonoTODO]
- public override Type[] RequiredCustomModifiers {
- get {
- throw new NotImplementedException ();
- }
- }
-#endif
-
#if NET_2_0 || BOOTSTRAP_NET_2_0
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public override extern FieldInfo Mono_GetGenericFieldDefinition ();
}
#if NET_2_0 || BOOTSTRAP_NET_2_0
- [MonoTODO]
+ [Obsolete ("Use ParameterInfo.GetOptionalCustomModifiers().")]
public virtual Type[] OptionalCustomModifiers {
get {
- throw new NotImplementedException ();
+ return GetOptionalCustomModifiers ();
}
}
- [MonoTODO]
+ [Obsolete ("Use ParameterInfo.GetRequiredCustomModifiers().")]
public virtual Type[] RequiredCustomModifiers {
get {
- throw new NotImplementedException ();
+ return GetRequiredCustomModifiers ();
}
}
+
+ [MonoTODO]
+ public virtual Type[] GetOptionalCustomModifiers () {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual Type[] GetRequiredCustomModifiers () {
+ throw new NotImplementedException ();
+ }
#endif
}
}
#if NET_2_0
[ComVisible (true)]
+ [Serializable]
#endif
[CLSCompliant(false)]
public unsafe sealed class Pointer : ISerializable {
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+using System.Runtime.InteropServices;
+
namespace System.Reflection {
+#if NET_2_0
+ [ComVisible (true)]
+#endif
[Flags]
[Serializable]
#if NET_2_0 || BOOTSTRAP_NET_2_0
NotAPortableExecutableImage = 0,
ILOnly = 1,
Required32Bit = 2,
+ [Obsolete ("Please use PE32Plus instead - this will be removed before Whidbey ships")]
Plus32Bit = 4,
PE32Plus = 4,
Unmanaged32Bit = 8
#if NET_2_0
+using System.Runtime.InteropServices;
+
namespace System.Reflection {
- [Flags]
+ [ComVisible (true)]
[Serializable]
public enum ProcessorArchitecture {
None = 0,
return typeImpl.GetConstructor (bindingAttr, binder, callConvention, types, modifiers);
}
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public override ConstructorInfo[] GetConstructors( BindingFlags bindingAttr)
{
return typeImpl.GetConstructors (bindingAttr);
return typeImpl.GetInterface (name, ignoreCase);
}
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public override InterfaceMapping GetInterfaceMap( Type interfaceType)
{
return typeImpl.GetInterfaceMap (interfaceType);
throw new NotImplementedException ();
}
}
+
+ public override int MetadataToken {
+ get {
+ return typeImpl.MetadataToken;
+ }
+ }
#endif
}