You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.1 KiB
53 lines
2.1 KiB
//This code was lended from http://bit.ly/ifluentinterface, and is not covered by the regular NWebsec lisence.
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace NWebsec.Core.Fluent
|
|
{
|
|
/// <summary>
|
|
/// Interface that is used to build fluent interfaces and hides methods declared by <see cref="object" /> from
|
|
/// IntelliSense.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Code that consumes implementations of this interface should expect one of two things:
|
|
/// <list type="number">
|
|
/// <item>
|
|
/// When referencing the interface from within the same solution (project reference), you will still see the
|
|
/// methods this interface is meant to hide.
|
|
/// </item>
|
|
/// <item>
|
|
/// When referencing the interface through the compiled output assembly (external reference), the standard
|
|
/// Object methods will be hidden as intended.
|
|
/// </item>
|
|
/// </list>
|
|
/// See http://bit.ly/ifluentinterface for more information.
|
|
/// </remarks>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public interface IFluentInterface
|
|
{
|
|
/// <summary>
|
|
/// Redeclaration that hides the <see cref="object.GetType()" /> method from IntelliSense.
|
|
/// </summary>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
Type GetType();
|
|
|
|
/// <summary>
|
|
/// Redeclaration that hides the <see cref="object.GetHashCode()" /> method from IntelliSense.
|
|
/// </summary>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
int GetHashCode();
|
|
|
|
/// <summary>
|
|
/// Redeclaration that hides the <see cref="object.ToString()" /> method from IntelliSense.
|
|
/// </summary>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
string ToString();
|
|
|
|
/// <summary>
|
|
/// Redeclaration that hides the <see cref="object.Equals(object)" /> method from IntelliSense.
|
|
/// </summary>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
bool Equals(object obj);
|
|
}
|
|
}
|