Пример #1
0
 protected ComplexLinkType(
     string referenceName,
     string friendlyName,
     ArtifactType sourceArtifactType,
     ArtifactType targetArtifactType,
     ExtendedLinkProperties extendedLinkProperties)
     : base(referenceName, friendlyName, sourceArtifactType, targetArtifactType)
 {
     if (null == extendedLinkProperties)
     {
         throw new ArgumentNullException("extendedLinkProperties");
     }
     ExtendedProperties = extendedLinkProperties;
 }
Пример #2
0
        public LinkType(
            string referenceName,
            string friendlyName,
            ArtifactType sourceArtifactType,
            ArtifactType targetArtifactType,
            ExtendedLinkProperties extendedLinkProperties)
        {
            if (string.IsNullOrEmpty(referenceName))
            {
                throw new ArgumentNullException("referenceName");
            }

            if (string.IsNullOrEmpty(friendlyName))
            {
                throw new ArgumentNullException("friendlyName");
            }

            if (null == sourceArtifactType)
            {
                throw new ArgumentNullException("sourceArtifactType");
            }

            if (null == targetArtifactType)
            {
                throw new ArgumentNullException("targetArtifactType");
            }

            if (null == extendedLinkProperties)
            {
                throw new ArgumentNullException("extendedLinkProperties");
            }

            ReferenceName      = referenceName;
            FriendlyName       = friendlyName;
            SourceArtifactType = sourceArtifactType;
            TargetArtifactType = targetArtifactType;
            ExtendedProperties = extendedLinkProperties;
        }