// PUBLIC CONSTRUCTORS //////////////////////////////////////////////
        #region Constructors
        public RelationshipInfo(string rel, string apiRelPathSegment, Type toClrType, RelationshipCardinality toCardinality, RelationshipCanonicalRelPathMode toCanonicalRelPathMode)
        {
            Contract.Requires(String.IsNullOrWhiteSpace(rel) == false);
            Contract.Requires(String.IsNullOrWhiteSpace(apiRelPathSegment) == false);
            Contract.Requires(toClrType != null);

            this.Rel = rel;
            this.ApiRelPathSegment      = apiRelPathSegment;
            this.ToClrType              = toClrType;
            this.ToCardinality          = toCardinality;
            this.ToCanonicalRelPathMode = toCanonicalRelPathMode;
        }
 public IRelationshipInfoBuilder <TResource> SetCanonicalRelPathMode(RelationshipCanonicalRelPathMode toCanonicalRelPathMode)
 {
     this.RelationshipInfoModifierCollection = this.RelationshipInfoModifierCollection ?? new List <Action <RelationshipInfo> >();
     this.RelationshipInfoModifierCollection.Add(x => { x.ToCanonicalRelPathMode = toCanonicalRelPathMode; });
     return(this);
 }