Skip to content

Methods should return the exact type #144

@ds5678

Description

@ds5678

When a method returns an object (either as an actual return or as an out parameter), the type of that object should be the exact type, which might be derived from specified return type.

For example, consider this Mono method:

public static Stream GetStream() => new MemoryStream();

When when the Il2Cpp wrapper is called by a modder, we want it to return Il2CppSystem.IO.MemoryStream, not Il2CppSystem.IO.Stream.

This requires #142 and #143.

Metadata

Metadata

Assignees

No one assigned

    Labels

    generationRelated to assembly generation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions