Show / Hide Table of Contents

Class ImplFinder

Used for finding the implementation for a type that inherits from IImplementation.

This is used to load up a different type implementation depending on whether we are in-game, or in the Unity Editor

Inheritance
object
ImplFinder
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public static class ImplFinder

Methods

| Edit this page View Source

GetImplementationType<T>()

Gets the implementation for a specific type

Declaration
public static Type GetImplementationType<T>() where T : IImplementation
Returns
Type Description
Type

Returns the implementation for the type

Type Parameters
Name Description
T

The type to get the implementation for

Exceptions
Type Condition
Exception

Throws if an implemention for the type doesn't exist

| Edit this page View Source

GetImplementation<T>()

Gets an instance of the implementation for a specific type

Declaration
public static T GetImplementation<T>() where T : IImplementation
Returns
Type Description
T

Returns the implementation for the type

Type Parameters
Name Description
T

The type to get the implementation for

  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾