[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Type.cs, 1.25, 1.26
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Type.cs, 1.25, 1.26 |
Date: |
Fri, 08 Aug 2003 03:08:48 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System
In directory subversions:/tmp/cvs-serv20661/runtime/System
Modified Files:
Type.cs
Log Message:
Update the internalcalls for type generics to match Gyro 1.0.
Index: Type.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Type.cs,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** Type.cs 29 May 2003 01:22:40 -0000 1.25
--- Type.cs 8 Aug 2003 07:08:45 -0000 1.26
***************
*** 1425,1448 ****
// ECMA-compatible, but will probably be ECMA eventually.
! // Determine if this is a generic type.
! protected virtual bool IsGenericTypeImpl()
{
! throw new
NotSupportedException(_("NotSupp_NotGenericType"));
! }
!
! // Get the arity of a generic type.
! protected virtual int ArityImpl()
! {
! throw new
NotSupportedException(_("NotSupp_NotGenericType"));
}
! // Determine if this is a generic type that has been instantiated.
! public bool IsInstantiatedTypeImpl()
{
! return (GetInstantiation() != null);
}
// Get the type parameters that were used to instantiate this type.
! public virtual Type[] GetInstantiation()
{
throw new
NotSupportedException(_("NotSupp_NotGenericType"));
--- 1425,1442 ----
// ECMA-compatible, but will probably be ECMA eventually.
! // Determine if this type has generic arguments.
! protected virtual bool HasGenericArgumentsImpl()
{
! return false;
}
! // Determine if this type has generic parameters.
! protected virtual bool HasGenericParametersImpl()
{
! return false;
}
// Get the type parameters that were used to instantiate this type.
! public virtual Type[] GetGenericArguments()
{
throw new
NotSupportedException(_("NotSupp_NotGenericType"));
***************
*** 1450,1454 ****
// Instantiate this generic type with a group of parameters.
! public virtual Type Instantiate(Type[] inst)
{
throw new
NotSupportedException(_("NotSupp_NotGenericType"));
--- 1444,1448 ----
// Instantiate this generic type with a group of parameters.
! public virtual Type BindGenericParameters(Type[] inst)
{
throw new
NotSupportedException(_("NotSupp_NotGenericType"));
***************
*** 1456,1460 ****
// Get the generic type that underlies this instantiated type.
! public virtual Type GetGenericType()
{
throw new
NotSupportedException(_("NotSupp_NotGenericType"));
--- 1450,1454 ----
// Get the generic type that underlies this instantiated type.
! public virtual Type GetGenericTypeDefinition()
{
throw new
NotSupportedException(_("NotSupp_NotGenericType"));
***************
*** 1462,1484 ****
// Properties that wrap up the above.
! public bool IsGenericType
! {
! get
! {
! return IsGenericTypeImpl();
! }
! }
! public int Arity
{
get
{
! return ArityImpl();
}
}
! public bool IsInstantiatedType
{
get
{
! return IsInstantiatedTypeImpl();
}
}
--- 1456,1471 ----
// Properties that wrap up the above.
! public bool HasGenericArguments
{
get
{
! return HasGenericArgumentsImpl();
}
}
! public bool HasGenericParameters
{
get
{
! return HasGenericParametersImpl();
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Type.cs, 1.25, 1.26,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection ClrType.cs, 1.18, 1.19 TypeDelegator.cs, 1.2, 1.3
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1243,1.1244
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection ClrType.cs, 1.18, 1.19 TypeDelegator.cs, 1.2, 1.3
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1243,1.1244
- Index(es):