diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-10-10 16:55:44 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-10-10 16:55:44 +0300 |
| commit | 79eb19cbd10785a7dbc972bc0b26817932237419 (patch) | |
| tree | e36176fc94ce6f26efc89b006d7e6faf7e4398cb /Software/Visual_Studio/SideChains/RealTimeGraphX/ExtensionMethods/IGraphComponentExtensions.cs | |
| parent | df9197240ba5a643ce1599f36b7e3dd34aad6a60 (diff) | |
| download | Tango-79eb19cbd10785a7dbc972bc0b26817932237419.tar.gz Tango-79eb19cbd10785a7dbc972bc0b26817932237419.zip | |
Sign-out works !
Fixed issue where color conversion was busy while not in research module but research module in job view.
Added new RealTimeGraphX !
Diffstat (limited to 'Software/Visual_Studio/SideChains/RealTimeGraphX/ExtensionMethods/IGraphComponentExtensions.cs')
| -rw-r--r-- | Software/Visual_Studio/SideChains/RealTimeGraphX/ExtensionMethods/IGraphComponentExtensions.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX/ExtensionMethods/IGraphComponentExtensions.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX/ExtensionMethods/IGraphComponentExtensions.cs new file mode 100644 index 000000000..e6946394e --- /dev/null +++ b/Software/Visual_Studio/SideChains/RealTimeGraphX/ExtensionMethods/IGraphComponentExtensions.cs @@ -0,0 +1,27 @@ +using RealTimeGraphX; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +/// <summary> +/// Contains a set of <see cref="IGraphComponent"/> extension methods. +/// </summary> +public static class IGraphComponentExtensions +{ + /// <summary> + /// Throws a null argument exception if the specified component is null. + /// </summary> + /// <param name="component">The component.</param> + /// <param name="message">The message.</param> + /// <exception cref="NullReferenceException"></exception> + public static void ThrowIfNull(this IGraphComponent component, String message) + { + if (component == null) + { + throw new NullReferenceException(message); + } + } +} + |
