Class ObservableEventNameAttribute
- Namespace
- WebDriverBiDi
- Assembly
- WebDriverBiDi.dll
Marks an ObservableEvent<T> property with its event name string so that Roslyn analyzers can read the name from compiled metadata as well as from source.
[AttributeUsage(AttributeTargets.Property)]
public sealed class ObservableEventNameAttribute : Attribute
- Inheritance
-
ObservableEventNameAttribute
- Inherited Members
Constructors
ObservableEventNameAttribute(string)
Initializes a new instance of the ObservableEventNameAttribute class.
public ObservableEventNameAttribute(string eventName)
Parameters
eventNamestringThe event name string passed to the ObservableEvent<T> constructor.
Properties
EventName
Gets the event name.
public string EventName { get; }