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; @@ -31,6 +31,7 @@ using System.Xml.XPath;
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 FrameworkTemplate GetFrameworkTemplate(XmlElement xmlElement, XamlObject parentObject)
@ -135,4 +136,5 @@ namespace ICSharpCode.WpfDesign.XamlDom @@ -135,4 +136,5 @@ namespace ICSharpCode.WpfDesign.XamlDom
return stream;
}
}
#pragma warning restore 1591
}

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

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

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

@ -35,6 +35,9 @@ namespace ICSharpCode.WpfDesign @@ -35,6 +35,9 @@ namespace ICSharpCode.WpfDesign
readonly string _propertyName;
readonly object _dummyValue;
/// <summary>
/// Initializes a new instance of <see cref="DummyValueInsteadOfNullTypeDescriptionProvider"/>.
/// </summary>
public DummyValueInsteadOfNullTypeDescriptionProvider(TypeDescriptionProvider existingProvider,
string propertyName, object dummyValue)
: base(existingProvider)
@ -43,10 +46,12 @@ namespace ICSharpCode.WpfDesign @@ -43,10 +46,12 @@ namespace ICSharpCode.WpfDesign
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)
{
return new ShadowTypeDescriptor(this, base.GetTypeDescriptor(objectType, instance));
}
#pragma warning restore 1591
sealed class ShadowTypeDescriptor : CustomTypeDescriptor
{

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

@ -121,10 +121,12 @@ namespace ICSharpCode.WpfDesign.Extensions @@ -121,10 +121,12 @@ namespace ICSharpCode.WpfDesign.Extensions
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()
{
return true;
}
#pragma warning restore 1591
/// <summary>
/// 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; @@ -25,8 +25,13 @@ using System.Windows.Media;
namespace ICSharpCode.WpfDesign.UIExtensions
{
/// <summary>
/// Contains helper methods for UI.
/// </summary>
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)
{
if (child == null) return null;
@ -119,5 +124,7 @@ namespace ICSharpCode.WpfDesign.UIExtensions @@ -119,5 +124,7 @@ namespace ICSharpCode.WpfDesign.UIExtensions
}
return foundChild;
}
#pragma warning restore 1591
}
}

Loading…
Cancel
Save