예제 #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;
 }