Exemple #1
0
        /// <summary>
        /// Reads whether the target represents an optional dependency.
        /// </summary>
        /// <returns><see langword="True"/> if it is optional; otherwise <see langword="false"/>.</returns>
        protected virtual bool ReadOptionalFromTarget()

        {
            return(ExtensionsForICustomAttributeProvider.HasAttribute(Site, typeof(OptionalAttribute)));
        }