public void Initialize()
		{
			if (mixinData == null)
			{
				try
				{
					mixinData = new MixinData(mixins);
				}
				catch (ArgumentException ex)
				{
					throw new InvalidMixinConfigurationException("There is a problem with the mixins added to this ProxyGenerationOptions: " + ex.Message, ex);
				}
			}
		}
Example #2
0
		public void Initialize ()
		{
			if (mixinData == null)
				mixinData = new MixinData (mixins);
		}
Example #3
0
		public void AddMixinInstance(object instance)
		{
			if (instance == null)
			{
				throw new ArgumentNullException("instance");
			}

			if (mixins == null)
			{
				mixins = new List<object> ();
			}

			mixins.Add(instance);
			mixinData = null;
		}