DelegateOrConvention Class

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
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
NullableContextAttribute
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(IConvention, Delegate) void
Deconstructs the specified convention.
Equals(DelegateOrConvention) bool
Indicates whether the current object is equal to another object of the same type.
Equals(object) 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
ToDelegateOrConvention() DelegateOrConvention
Get the delegate or convention.
ToString() string

Operators

Name Value Summary
implicit operator Delegate(DelegateOrConvention) Delegate
implicit operator DelegateOrConvention(Delegate) DelegateOrConvention
operator !=(DelegateOrConvention, DelegateOrConvention) bool
operator ==(DelegateOrConvention, DelegateOrConvention) bool

Extension Methods

See Also