Exemplo n.º 1
0
 /// <summary>
 /// Constructs a CdmPurposeDefinition.
 /// </summary>
 /// <param name="ctx">The context.</param>
 /// <param name="purposeName">The purpose name.</param>
 /// <param name="extendsPurpose">The purpose extended by this purpose.</param>
 public CdmPurposeDefinition(CdmCorpusContext ctx, string purposeName, CdmPurposeReference extendsPurpose = null)
     : base(ctx)
 {
     this.ObjectType  = CdmObjectType.PurposeDef;
     this.PurposeName = purposeName;
     if (extendsPurpose != null)
     {
         this.ExtendsPurpose = extendsPurpose;
     }
 }
Exemplo n.º 2
0
        internal override CdmObjectReferenceBase CopyRefObject(ResolveOptions resOpt, dynamic refTo, bool simpleReference)
        {
            CdmPurposeReference copy = new CdmPurposeReference(this.Ctx, refTo, simpleReference);

            return(copy);
        }