NClass.Core.GeneralizationRelationship.OnDetaching C# (CSharp) Method

OnDetaching() protected method

protected OnDetaching ( EventArgs e ) : void
e System.EventArgs
return void
		protected override void OnDetaching(EventArgs e)
		{
			base.OnDetaching(e);

			if (First is SingleInharitanceType)
				((SingleInharitanceType) First).Base = null;
			else if (First is InterfaceType)
				((InterfaceType) First).RemoveBase(Second as InterfaceType);
		}