Infohazard.Core 1.4.1
Infohazard Core Utility Library
Loading...
Searching...
No Matches
Infohazard.Core.MustImplementAttribute Class Reference

Applied to object reference fields to ensure that an assigned Object must implement one or more interfaces. More...

Public Member Functions

 MustImplementAttribute (params Type[] types)
 Construct a new MustImplementAttribute. More...
 

Properties

IReadOnlyList< Type > RequiredTypes [get]
 Interfaces that must be implemented by the assigned Object. More...
 

Detailed Description

Applied to object reference fields to ensure that an assigned Object must implement one or more interfaces.

Constructor & Destructor Documentation

◆ MustImplementAttribute()

Infohazard.Core.MustImplementAttribute.MustImplementAttribute ( params Type[]  types)

Construct a new MustImplementAttribute.

Parameters
typesInterfaces that must be implemented by the assigned Object.

Property Documentation

◆ RequiredTypes

IReadOnlyList<Type> Infohazard.Core.MustImplementAttribute.RequiredTypes
get

Interfaces that must be implemented by the assigned Object.


The documentation for this class was generated from the following file: