public IState[] RegisterStates() { var enumValues = Enum.GetValues(typeof(GameStateType)); for (int i = 0; i < enumValues.Length; i++) { var currentEnumValue = enumValues.GetValue(i); var parsedEnumValue = (GameStateType)Enum.Parse(currentEnumValue.GetType(), currentEnumValue.ToString()); var classWithCurrentType = SolutionTypes.Classes() .FirstOrDefault( c => c.GetTypeInfo() .DeclaredProperties .Any(dp => dp.PropertyType.Name == currentEnumValue.GetType().Name)); } return(null); }
public DependencyResolver() { currentInstanceHolder = SolutionTypes.InitializeCallers <IRunnable>(); this.holderType = this.currentInstanceHolder.GetType().GetTypeInfo(); this.stateByType = this.StateByTypes(); }