Download MovieTube.Viewer/Classes/ExtensionMethods.cs from niobures/VideoSearch: direct link, hf CLI and curl.
- Browser
- Download file 754 Bytes
-
https://huggingface.co/niobures/VideoSearch/resolve/main/MovieTube.Viewer/Classes/ExtensionMethods.cs
- Command line
-
hf download hf://niobures/VideoSearch/MovieTube.Viewer/Classes/ExtensionMethods.cs
-
curl -L -o ExtensionMethods.cs https://huggingface.co/niobures/VideoSearch/resolve/main/MovieTube.Viewer/Classes/ExtensionMethods.cs
754 Bytes
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| using System.ComponentModel; | |
| using System.Windows.Forms; | |
| using System.Runtime.CompilerServices; | |
| namespace MovieTube.Viewer | |
| { | |
| public static class ExtensionMethods | |
| { | |
| public static void InvokeEx<TControl>(this TControl control, Action action) | |
| where TControl : Control | |
| { | |
| if (control.InvokeRequired) | |
| control.BeginInvoke(action); | |
| else | |
| action(); | |
| } | |
| } | |
| } | |
| namespace System.Runtime.CompilerServices | |
| { | |
| [ | |
| ] | |
| public sealed class ExtensionAttribute : Attribute { } | |
| } | |