public override bool IsAssignableFrom(CilType other) { if (other is CilTypeInt8) { return(true); } return(false); }
public override bool IsAssignableFrom(CilType other) { if (other is CilTypeArray otherArray) { return(ElementType.IsAssignableFrom(otherArray.ElementType)); } return(false); }
public override bool IsAssignableFrom(CilType other) { if (other is CilTypeClass typeClass) { if (ClassName.ToString() == typeClass.ClassName.ToString()) { return(true); } } throw new NotImplementedException(); }
public override bool IsAssignableFrom(CilType other) { if (other is CilTypeManagedPointer otherManagedPointer) { if (InnerType.IsAssignableFrom(otherManagedPointer.InnerType)) { return(true); } } return(false); }
public CilTypeArray(CilType elementType, int dims = 1) { ElementType = elementType; Dimensions = dims; }
public abstract bool IsAssignableFrom(CilType other);
public override bool IsAssignableFrom(CilType other) { throw new NotImplementedException(); }
public CilTypeManagedPointer(CilType innerType) { InnerType = innerType; }