Summary
A pattern match class that is used to determine if a type is a
IConvention, a Delegate or
None
Implements the DelegateOrConvention
- Assembly
- Rocket
.Surgery .Conventions .Abstractions .dll - Namespace
- Rocket
.Surgery .Conventions .Scanners - Interfaces
-
- IEquatable
<DelegateOrConvention>
- IEquatable
- Base Types
-
- ValueType
graph BT
Type-->Base0["ValueType"]
Type-.->Interface0["IEquatable<DelegateOrConvention>"]
Type["DelegateOrConvention"]
class Type type-node
Syntax
public sealed class DelegateOrConvention : ValueType, IEquatable<DelegateOrConvention>
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| NullableAttribute |
Properties
| Name | Value | Summary |
|---|---|---|
| Convention | IConvention |
The convention, only Convention or Delegate are available
|
| Delegate | Delegate |
The delegate, only Convention or Delegate are available
|
| None | DelegateOrConvention |
A nether case, if no delegate is found
static
|
Methods
| Name | Value | Summary |
|---|---|---|
| Deconstruct |
void |
Deconstructs the specified convention.
|
| Equals |
bool |
Indicates whether the current object is equal to another object of the same type.
|
| Equals |
bool |
Determines whether the specified
object, is equal to this instance.
|
| GetHashCode |
int |
Returns a hash code for this instance.
|
| ToDelegate |
Delegate |
Get the delegate if it is a delegate
|
| To |
DelegateOrConvention |
Get the delegate or convention.
|
| ToString |
string |
Operators
| Name | Value | Summary |
|---|---|---|
| implicit operator |
Delegate | |
| implicit operator |
DelegateOrConvention | |
| operator != |
bool | |
| operator == |
bool |
Extension Methods
| Name | Value | Summary |
|---|---|---|
| SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
| With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|
