Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Refactor UniformTargetRepresentation #718

@stephen-hawley

Description

@stephen-hawley

Here's what you need to do:

Make an interface with all the common methods and properties and then make everything implement those interfaces.
The top UniformTargetRepresentation can also implement that interface and do it in terms of code like:

ITargetRepresentation ActualRep {
    get {
        return ((ITargetRepresentation)Library ?? Framework ?? XCFramework);
    }
}
public T SomeInterfaceMethod ()
{
    return ActualRep.SomeInterfaceMethod ();
}

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions