Browse Source

Disable warnings where appropriate.

pull/660/head
gumme 11 years ago
parent
commit
9b6df2e18b
  1. 2
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/TemplateHelper.cs
  2. 6
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlObjectServiceProvider.cs
  3. 5
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign/Project/DummyValueInsteadOfNullTypeDescriptionProvider.cs
  4. 2
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign/Project/Extensions/SelectionExtensionServer.cs
  5. 7
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign/Project/UIExtensions/UIHelpers.cs

2
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/TemplateHelper.cs

@ -31,6 +31,7 @@ using System.Xml.XPath;
namespace ICSharpCode.WpfDesign.XamlDom namespace ICSharpCode.WpfDesign.XamlDom
{ {
#pragma warning disable 1591 // Primary internal use, disable Warning CS1591: Missing XML comment for publicly visible type or member
public static class TemplateHelper public static class TemplateHelper
{ {
public static FrameworkTemplate GetFrameworkTemplate(XmlElement xmlElement, XamlObject parentObject) public static FrameworkTemplate GetFrameworkTemplate(XmlElement xmlElement, XamlObject parentObject)
@ -135,4 +136,5 @@ namespace ICSharpCode.WpfDesign.XamlDom
return stream; return stream;
} }
} }
#pragma warning restore 1591
} }

6
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlObjectServiceProvider.cs

@ -125,6 +125,8 @@ namespace ICSharpCode.WpfDesign.XamlDom
#endregion #endregion
#pragma warning disable 1591 // Implemented interfaces, disable Warning CS1591: Missing XML comment for publicly visible type or member
#region IUriContext implementation #region IUriContext implementation
public virtual Uri BaseUri { public virtual Uri BaseUri {
@ -255,8 +257,12 @@ namespace ICSharpCode.WpfDesign.XamlDom
get { return false; } get { return false; }
} }
#pragma warning disable 0067 // Required by interface implementation, disable Warning CS0067: The event is never used
public event EventHandler OnNameScopeInitializationComplete; public event EventHandler OnNameScopeInitializationComplete;
#pragma warning restore 0067
#endregion #endregion
#pragma warning restore 1591
} }
} }

5
src/AddIns/DisplayBindings/WpfDesign/WpfDesign/Project/DummyValueInsteadOfNullTypeDescriptionProvider.cs

@ -35,6 +35,9 @@ namespace ICSharpCode.WpfDesign
readonly string _propertyName; readonly string _propertyName;
readonly object _dummyValue; readonly object _dummyValue;
/// <summary>
/// Initializes a new instance of <see cref="DummyValueInsteadOfNullTypeDescriptionProvider"/>.
/// </summary>
public DummyValueInsteadOfNullTypeDescriptionProvider(TypeDescriptionProvider existingProvider, public DummyValueInsteadOfNullTypeDescriptionProvider(TypeDescriptionProvider existingProvider,
string propertyName, object dummyValue) string propertyName, object dummyValue)
: base(existingProvider) : base(existingProvider)
@ -43,10 +46,12 @@ namespace ICSharpCode.WpfDesign
this._dummyValue = dummyValue; this._dummyValue = dummyValue;
} }
#pragma warning disable 1591 // Override, disable Warning CS1591: Missing XML comment for publicly visible type or member
public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
{ {
return new ShadowTypeDescriptor(this, base.GetTypeDescriptor(objectType, instance)); return new ShadowTypeDescriptor(this, base.GetTypeDescriptor(objectType, instance));
} }
#pragma warning restore 1591
sealed class ShadowTypeDescriptor : CustomTypeDescriptor sealed class ShadowTypeDescriptor : CustomTypeDescriptor
{ {

2
src/AddIns/DisplayBindings/WpfDesign/WpfDesign/Project/Extensions/SelectionExtensionServer.cs

@ -121,10 +121,12 @@ namespace ICSharpCode.WpfDesign.Extensions
ReapplyExtensions(this.Services.Selection.SelectedItems); ReapplyExtensions(this.Services.Selection.SelectedItems);
} }
#pragma warning disable 1591 // Override, disable Warning CS1591: Missing XML comment for publicly visible type or member
public override bool ShouldBeReApplied() public override bool ShouldBeReApplied()
{ {
return true; return true;
} }
#pragma warning restore 1591
/// <summary> /// <summary>
/// Gets if the item is in the secondary selection. /// Gets if the item is in the secondary selection.

7
src/AddIns/DisplayBindings/WpfDesign/WpfDesign/Project/UIExtensions/UIHelpers.cs

@ -25,8 +25,13 @@ using System.Windows.Media;
namespace ICSharpCode.WpfDesign.UIExtensions namespace ICSharpCode.WpfDesign.UIExtensions
{ {
/// <summary>
/// Contains helper methods for UI.
/// </summary>
public static class UIHelpers public static class UIHelpers
{ {
#pragma warning disable 1591 // Primary internal use, disable Warning CS1591: Missing XML comment for publicly visible type or member
public static DependencyObject GetParentObject(this DependencyObject child, bool searchCompleteVisualTree) public static DependencyObject GetParentObject(this DependencyObject child, bool searchCompleteVisualTree)
{ {
if (child == null) return null; if (child == null) return null;
@ -119,5 +124,7 @@ namespace ICSharpCode.WpfDesign.UIExtensions
} }
return foundChild; return foundChild;
} }
#pragma warning restore 1591
} }
} }

Loading…
Cancel
Save