Class GamePickerList<T>
Generic version of GamePickerList. Gives access to the wrapped type of GamePickerList through reflection. Non-generic version is still supported.
This happens because to obtain 'MustDeriveType', we'd need the object's instance, which is hard and inefficient to obtain.
So, the generic version is introduced to wrap 'MustDeriveType' under 'T'. Now 'MustDeriveType' is easily obtainable through memberInfo.GenericTypeArguments[0]
.
Implements
System.ComponentModel.INotifyPropertyChanged
System.ICloneable
Inherited Members
Namespace: Eco.Gameplay.Civics.GameValues
Assembly: Eco.Gameplay.dll
Syntax
public class GamePickerList<T> : GamePickerList, INotifyPropertyChanged, ILinkable, INamed, IController, IViewController, IHasUniversalID, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IPostCloneMethodContainer, ICloneable
Type Parameters
Name | Description |
---|---|
T |
Constructors
GamePickerList()
Declaration
protected GamePickerList()
GamePickerList(String)
Declaration
public GamePickerList(string emptyDesc = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | emptyDesc |
Properties
Values
Declaration
public IEnumerable<T> Values { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T> |
Implements
System.ComponentModel.INotifyPropertyChanged
System.ICloneable