You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#pragma warning disable HeapAnalyzerExplicitNewObjectRule// Explicit new reference type allocation
2
+
usingSystem;
3
+
4
+
namespaceImageflow
5
+
{
6
+
/// <summary>
7
+
/// Common Exceptions
8
+
/// </summary>
9
+
internalstaticclassExceptions
10
+
{
11
+
/// <summary>
12
+
/// Parameter is not the correct.
13
+
/// </summary>
14
+
/// <typeparam name="TWantedType">The type of the wanted type.</typeparam>
15
+
/// <param name="nameOfParameter">The name of parameter.</param>
16
+
/// <returns>An <see cref="ArgumentException"/> with filled in message and parameter.</returns>
17
+
publicstaticArgumentExceptionParameterIsNotTheCorrectType<TWantedType>(stringnameOfParameter)=>newArgumentException($"{nameOfParameter} is not an {typeof(TWantedType).Name}.");
18
+
}
19
+
}
20
+
#pragma warning restore HeapAnalyzerExplicitNewObjectRule// Explicit new reference type allocation
/// Initializes a new instance of the <see cref="ContextPointer"/> struct.
21
+
/// </summary>
22
+
/// <param name="pointer">The pointer.</param>
23
+
publicContextPointer(IntPtrpointer)
24
+
{
25
+
contextPointer=pointer;
26
+
}
27
+
28
+
/// <summary>
29
+
/// Indicates whether the current <see cref="ContextPointer"/> is equal to another <see cref="ContextPointer"/>.
30
+
/// </summary>
31
+
/// <param name="other">A <see cref="ContextPointer"/> to compare with this <see cref="ContextPointer"/>.</param>
32
+
/// <returns>
33
+
/// <see langword="true"/> if the current <see cref="ContextPointer"/> is equal to the <paramref name="other" /> parameter; otherwise, <see langword="false"/>.
0 commit comments