Volume Control
Application-specific hotkeys for Windows
|
Extension methods that use C#'s reflection capabilities. More...
Static Public Member Functions | |
static void | RaisePropertyChanged (this INotifyPropertyChanged bindableObject, string propertyName, object? sender, PropertyChangedEventArgs e) |
Raises the PropertyChanged event on the given object that implements INotifyPropertyChanged. More... | |
static void | RaisePropertyChanged (this INotifyPropertyChanged bindableObject, string propertyName, object? sender) |
Raises the PropertyChanged event on the given object that implements INotifyPropertyChanged. More... | |
static void | RaisePropertyChanged (this INotifyPropertyChanged bindableObject, string propertyName, PropertyChangedEventArgs e) |
Raises the PropertyChanged event on the given object that implements INotifyPropertyChanged. More... | |
static void | RaisePropertyChanged (this INotifyPropertyChanged bindableObject, string propertyName) |
Raises the PropertyChanged event on the given object that implements INotifyPropertyChanged. More... | |
static void | RaiseEvent (this object source, string eventName, object[] args) |
Raises the event specified by eventName on the given source object by invoking all of its bound handler delegates. More... | |
static void | RaiseEvent< TEventArgs > (this object source, string eventName, object? sender, TEventArgs eventArgs) |
Raises the event named eventName on the object source with the given sender & eventArgs parameters. Src: More... | |
static void | RaiseEvent< TEventArgs > (this object source, string eventName, TEventArgs eventArgs) |
Raises the event named eventName on the object source with the given eventArgs parameters. Src: More... | |
static void | RaiseEvent (this object source, string eventName, object? sender, object eventArgs) |
Raises the event named eventName on the object source with the given sender & eventArgs parameters. Src: More... | |
static void | RaiseEvent (this object source, string eventName, object eventArgs) |
Raises the event named eventName on the object source with the given eventArgs parameters. Src: More... | |
static ? object | GetValue (this MemberInfo mInfo, object? objectInstance) |
Gets the value of the member represented by mInfo from objectInstance . More... | |
static bool | SetValue (this MemberInfo mInfo, object? objectInstance, object? value) |
Sets the value of the member represented by mInfo in objectInstance to value . More... | |
static bool | IsPublic (this PropertyInfo pInfo) |
Checks if both the getter and setter of a property are public. More... | |
static bool | IsAwaitable (this MethodInfo methodInfo) |
Checks if the method returns a type that has a GetAwaiter() method, and thus can be await ed. More... | |
Extension methods that use C#'s reflection capabilities.
|
static |
Gets the value of the member represented by mInfo from objectInstance .
mInfo | MemberInfo |
objectInstance | An instance of the object that contains the member represented by mInfo , or null if the object is static . |
null
if mInfo isn't associated with a field or property.Referenced by VolumeControl.TypeExtensions.ReflectionExtensions.RaiseEvent().
|
static |
Checks if the method returns a type that has a GetAwaiter() method, and thus can be await
ed.
methodInfo | (implicit) The MethodInfo instance representing the method to check. |
true
when the method is awaitable; otherwise, false
.
|
static |
Checks if both the getter and setter of a property are public.
pInfo | PropertyInfo |
true
when the getter and setter methods are public; otherwise false
.
|
static |
Raises the event named eventName on the object source with the given eventArgs parameters. Src:
source | The object instance (or Type for static events/objects) on which to raise an event. |
eventName | The name of the event property in the source type. |
eventArgs | The EventArgs-derived instance to use for the event args parameter when invoking the event handlers. |
|
static |
Raises the event named eventName on the object source with the given sender & eventArgs parameters. Src:
source | The object instance (or Type for static events/objects) on which to raise an event. |
eventName | The name of the event property in the source type. |
sender | The sender parameter to use when invoking the event handlers. |
eventArgs | The EventArgs-derived instance to use for the event args parameter when invoking the event handlers. |
|
static |
Raises the event specified by eventName on the given source object by invoking all of its bound handler delegates.
source | The object instance (or Type for static events/objects) on which to raise an event. |
eventName | The name of the event property in the source type. |
args | The arguments to invoke the event handlers with. |
References VolumeControl.TypeExtensions.ReflectionExtensions.GetValue().
|
static |
Raises the event named eventName on the object source with the given sender & eventArgs parameters. Src:
TEventArgs | Any type derived from EventArgs |
source | The object instance (or Type for static events/objects) on which to raise an event. |
eventName | The name of the event property in the source type. |
sender | The sender parameter to use when invoking the event handlers. |
eventArgs | The EventArgs-derived instance to use for the event args parameter when invoking the event handlers. |
TEventArgs | : | EventArgs |
|
static |
Raises the event named eventName on the object source with the given eventArgs parameters. Src:
TEventArgs | Any type derived from EventArgs |
source | The object instance (or Type for static events/objects) on which to raise an event. |
eventName | The name of the event property in the source type. |
eventArgs | The EventArgs-derived instance to use for the event args parameter when invoking the event handlers. |
TEventArgs | : | EventArgs |
|
static |
Raises the PropertyChanged event on the given object that implements INotifyPropertyChanged.
bindableObject | An object instance that implements INotifyPropertyChanged. |
propertyName | The name of the property on bindableObject to raise an event for. |
|
static |
Raises the PropertyChanged event on the given object that implements INotifyPropertyChanged.
bindableObject | An object instance that implements INotifyPropertyChanged. |
propertyName | The name of the property on bindableObject to raise an event for. |
sender | The value to pass as the sender parameter to all attached PropertyChangedEventHandler instances. |
|
static |
Raises the PropertyChanged event on the given object that implements INotifyPropertyChanged.
bindableObject | An object instance that implements INotifyPropertyChanged. |
propertyName | The name of the property on bindableObject to raise an event for. |
sender | The value to pass as the sender parameter to all attached PropertyChangedEventHandler instances. |
e | The PropertyChangedEventArgs instance to pass as the event args parameter to all attached PropertyChangedEventHandler instances. |
|
static |
Raises the PropertyChanged event on the given object that implements INotifyPropertyChanged.
bindableObject | An object instance that implements INotifyPropertyChanged. |
propertyName | The name of the property on bindableObject to raise an event for. |
e | The PropertyChangedEventArgs instance to pass as the event args parameter to all attached PropertyChangedEventHandler instances. |
|
static |
Sets the value of the member represented by mInfo in objectInstance to value .
mInfo | MemberInfo |
objectInstance | An instance of the object that contains the member represented by mInfo , or null if the object is static . |
value | The value to set this member to. |
true
when the value of this member was set successfully; false
when mInfo doesn't represent a field or property.