public static AsEventSource ( this system ) : IEventSource | ||
system | this | |
Résultat | IEventSource |
public static IEventSource AsEventSource(this ISystem system)
{
if (system == null)
return null;
if (system is IEventSource)
return (IEventSource) system;
return new EventSource();
}