/// <summary> /// Creates a <see cref="IBehaviourRepository"/> based on the given <see cref="GladMonoBehaviour"/> /// instance provided and uses <see cref="IReflectionStrategy"/> for parsing the Type info. /// </summary> /// <param name="behaviour">Instance to parse.</param> /// <param name="strat">Strategy for parsing.</param> public BehaviourCollectionModelRepository(GladMonoBehaviour behaviour, IReflectionStrategy strat) { if (behaviour == null) throw new ArgumentNullException(nameof(behaviour), "Cannot deal with null " + nameof(MonoBehaviour) + "."); if (strat == null) throw new ArgumentNullException(nameof(strat), "Cannot handle serialization with a null " + nameof(IReflectionStrategy) + " strat."); dataBehaviour = behaviour; reflectionStrat = strat; }
/// <summary> /// Creates a <see cref="IBehaviourRepository"/> based on the given <see cref="GladMonoBehaviour"/> /// instance provided and uses <see cref="IReflectionStrategy"/> for parsing the Type info. /// </summary> /// <param name="behaviour">Instance to parse.</param> /// <param name="strat">Strategy for parsing.</param> public BehaviourCollectionModelRepository(GladMonoBehaviour behaviour, IReflectionStrategy strat) { if (behaviour == null) { throw new ArgumentNullException(nameof(behaviour), "Cannot deal with null " + nameof(MonoBehaviour) + "."); } if (strat == null) { throw new ArgumentNullException(nameof(strat), "Cannot handle serialization with a null " + nameof(IReflectionStrategy) + " strat."); } dataBehaviour = behaviour; reflectionStrat = strat; }