-
Notifications
You must be signed in to change notification settings - Fork 40
/
IHideObjectMethods.cs
62 lines (58 loc) · 2.62 KB
/
IHideObjectMethods.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Copyright (c) Mondol. All rights reserved.
//
// Author: frank
// Email: [email protected]
// Created: 2017-01-22
//
using System;
using System.ComponentModel;
namespace Mondol.DapperPoco
{
/// <summary>
/// An interface used to hide the 4 System.Object instance methods from the API in Visual Studio intellisense.
/// </summary>
/// <remarks>
/// Reference Project: MircoLite ORM (https://github.com/TrevorPilley/MicroLite)
/// Author: Trevor Pilley
/// Source: https://github.com/TrevorPilley/MicroLite/blob/develop/MicroLite/IHideObjectMethods.cs
/// </remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
public interface IHideObjectMethods
{
/// <summary>
/// Determines whether the specified <see cref="System.Object" /> is equal to this instance.
/// </summary>
/// <param name="other">The <see cref="System.Object" /> to compare with this instance.</param>
/// <returns>
/// <c>true</c> if the specified <see cref="System.Object" /> is equal to this instance; otherwise, <c>false</c>.
/// </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
bool Equals(object other);
/// <summary>
/// Returns a hash code for this instance.
/// </summary>
/// <returns>
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
/// </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
int GetHashCode();
/// <summary>
/// Gets the type.
/// </summary>
/// <returns>The type of the object.</returns>
[EditorBrowsable(EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate",
Justification = "The method is defined on System.Object, this interface is just to hide it from intelisense in Visual Studio")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "GetType",
Justification = "The method is defined on System.Object, this interface is just to hide it from intelisense in Visual Studio")]
Type GetType();
/// <summary>
/// Returns a <see cref="System.String" /> that represents this instance.
/// </summary>
/// <returns>
/// A <see cref="System.String" /> that represents this instance.
/// </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
string ToString();
}
}