UnknownObjectAccessor Structure |
Namespace: PostSharp.Patterns.Utilities
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
public readonly struct UnknownObjectAccessor : IEquatable<UnknownObjectAccessor>, IEnumerable<KeyValuePair<string, Object>>, IEnumerable
The UnknownObjectAccessor type exposes the following members.
Name | Description | |
---|---|---|
Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueType.Equals(Object).) | |
Equals(UnknownObjectAccessor) | Indicates whether the current object is equal to another object of the same type. | |
GetEnumerator |
Returns an UnknownObjectAccessor.Enumerator, which enumerates properties of the current UnknownObjectAccessor
as a set of KeyValuePair<string, object>.
| |
GetFactory(Type) |
Gets a delegate to a factory method that returns a UnknownObjectAccessor for an object of a type given as a generic parameter.
| |
GetFactory<T>() |
Gets a delegate to a factory method that returns a UnknownObjectAccessor for an object of a type given as a generic parameter.
| |
GetHashCode | Returns the hash code for this instance. (Overrides ValueType.GetHashCode().) | |
GetInstance |
Gets an UnknownObjectAccessor for a specific object.
| |
ToTuples |
Converts the wrapped object to an array of name-value tuples.
| |
TryGetProperty<T>(String, T) |
Gets the value of a named property for the current UnknownObjectAccessor.
| |
TryGetProperty<T>(Object, String, T) |
Gets the value of a named property for an arbitrary object.
| |
VisitProperties<TState> |
Invokes the Visit<TValue>(String, TValue, TState) method of a given visitor
for each property of the current UnknownObjectAccessor.
|
Name | Description | |
---|---|---|
Equality |
Determines if two UnknownObjectAccessor are equal.
| |
Inequality |
Determines if two UnknownObjectAccessor are different.
|
Name | Description | |
---|---|---|
ToAdvisableCollection<KeyValuePair<String, Object>> |
Converts an IEnumerable<T> into an AdvisableCollection<T>.
(Defined by Extensions.) | |
ToAdvisableDictionary<KeyValuePair<String, Object>, TKey, TValue> |
Converts an IEnumerable<T> into a AdvisableDictionary<TKey, TValue> given a method returning the item key and a method returning the item value.
(Defined by Extensions.) | |
ToAdvisableHashSet<KeyValuePair<String, Object>> |
Converts an IEnumerable<T> into an AdvisableHashSet<T>.
(Defined by Extensions.) |