NClass.Core.NestingRelationship.OnAttaching C# (CSharp) Method

OnAttaching() protected method

/// Cannot finalize relationship. ///
protected OnAttaching ( EventArgs e ) : void
e System.EventArgs
return void
		protected override void OnAttaching(EventArgs e)
		{
			if (InnerType.IsNested)
				throw new RelationshipException(Strings.ErrorInnerTypeAlreadyNested);

			InnerType.NestingParent = ParentType;
		}