Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InterwovenExtensionMethodsPackage"/> class.
        /// </summary>
        /// <param name="content">The content.</param>
        /// <param name="kind">The kind.</param>
        /// <param name="typeDependencies">The type dependencies.</param>
        public InterwovenExtensionMethodsPackage(string content, InterweaveDescriptions descriptions)
        {
            Content      = content?.Trim() ?? throw new ArgumentNullException(nameof(content));
            Descriptions = descriptions ?? throw new ArgumentNullException(nameof(descriptions));

            Key = $"{Kind} {descriptions.Key}";
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="InterwovenExtensionMethodsPackage"/> class.
        /// </summary>
        /// <param name="content">The content.</param>
        /// <param name="kind">The kind.</param>
        /// <param name="typeDependencies">The type dependencies.</param>
        public InterwovenTypeMembersPackage(string typeName, string content, InterweaveDescriptions descriptions)
        {
            TypeName     = typeName ?? throw new ArgumentNullException(nameof(typeName));
            Content      = content?.Trim() ?? throw new ArgumentNullException(nameof(content));
            Descriptions = descriptions ?? throw new ArgumentNullException(nameof(descriptions));

            Key = $"{Kind} {typeName} {Descriptions.Key}";
        }