Пример #1
0
        public override bool IsAssignableFrom(CilType other)
        {
            if (other is CilTypeInt8)
            {
                return(true);
            }

            return(false);
        }
Пример #2
0
        public override bool IsAssignableFrom(CilType other)
        {
            if (other is CilTypeArray otherArray)
            {
                return(ElementType.IsAssignableFrom(otherArray.ElementType));
            }

            return(false);
        }
Пример #3
0
        public override bool IsAssignableFrom(CilType other)
        {
            if (other is CilTypeClass typeClass)
            {
                if (ClassName.ToString() == typeClass.ClassName.ToString())
                {
                    return(true);
                }
            }

            throw new NotImplementedException();
        }
Пример #4
0
        public override bool IsAssignableFrom(CilType other)
        {
            if (other is CilTypeManagedPointer otherManagedPointer)
            {
                if (InnerType.IsAssignableFrom(otherManagedPointer.InnerType))
                {
                    return(true);
                }
            }

            return(false);
        }
Пример #5
0
 public CilTypeArray(CilType elementType, int dims = 1)
 {
     ElementType = elementType;
     Dimensions  = dims;
 }
Пример #6
0
 public abstract bool IsAssignableFrom(CilType other);
Пример #7
0
 public override bool IsAssignableFrom(CilType other)
 {
     throw new NotImplementedException();
 }
Пример #8
0
 public CilTypeManagedPointer(CilType innerType)
 {
     InnerType = innerType;
 }