コード例 #1
0
ファイル: StyleSheetInfo.cs プロジェクト: blairlearn/wcms-cde
        /// <summary>
        /// Determines whether the specified <see cref="T:System.Object"/> is equal to the current <see cref="T:System.Object"/>.
        /// </summary>
        /// <param name="obj">The <see cref="T:System.Object"/> to compare with the current <see cref="T:System.Object"/>.</param>
        /// <returns>
        /// true if the specified <see cref="T:System.Object"/> is equal to the current <see cref="T:System.Object"/>; otherwise, false.
        /// </returns>
        /// <exception cref="T:System.NullReferenceException">
        /// The <paramref name="obj"/> parameter is null.
        /// </exception>
        public override bool Equals(object obj)
        {
            StyleSheetInfo target = obj as StyleSheetInfo;

            if (target == null)
            {
                return(false);
            }

            if (StyleSheetPath != target.StyleSheetPath)
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PageTemplateInfo"/> class.
 /// </summary>
 public PageTemplateInfo()
 {
     StyleSheets = new StyleSheetInfo[] {};
     Javascripts = new JavascriptInfo[] { };
 }
コード例 #3
0
ファイル: PageResources.cs プロジェクト: blairlearn/wcms-cde
 /// <summary>
 /// Initializes a new instance of the <see cref="PageTemplateInfo"/> class.
 /// </summary>
 public PageResources()
 {
     StyleSheets = new StyleSheetInfo[] {};
     Javascripts = new JavascriptInfo[] { };
 }