NClass.Core.NestingRelationship.OnAttaching C# (CSharp) Méthode

OnAttaching() protected méthode

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

			InnerType.NestingParent = ParentType;
		}