/// <summary>
        /// Gets the hash code for a formatted event signature using the C# format.
        /// </summary>
        /// <param name="source">The sources <see cref="CsEvent"/> model.</param>
        /// <param name="includeSecurity">Optional parameter that determines to generate security in the definition. By default this is false.</param>
        /// <param name="includeAttributes">Optional parameter that determines if the attributes should be included in the definition. By default this is false.</param>
        /// <param name="includeKeywords">Optional parameter that determines if all keywords are included in the definition. By default this is false.</param>
        /// <returns>The hash code of the formatted model.</returns>
        /// <exception cref="ArgumentNullException">This is thrown if the  model is null.</exception>
        public static int FormatCSharpComparisonHashCode(this CsEvent source, bool includeSecurity = false,
                                                         bool includeAttributes = false, bool includeKeywords = false)
        {
            var dotNetEvent = source as IDotNetEvent;

            return(dotNetEvent.FormatCSharpComparisonHashCode(includeSecurity, includeAttributes, includeKeywords));
        }
        /// <summary>
        /// Generates the syntax definition of an event in c# syntax.
        /// </summary>
        /// <param name="source">The source <see cref="CsEvent"/> model to generate.</param>
        /// <param name="includeSecurity">Includes the security scope which was defined in the model.</param>
        /// <param name="includeAttributes">Includes definition of the attributes assigned to the model.</param>
        /// <param name="includeKeywords">Includes all keywords assigned to the source model.</param>
        /// <returns>Fully formatted event definition or null if the event data could not be generated.</returns>
        public static string FormatCSharpDeclarationSyntax(this CsEvent source, bool includeSecurity = true,
                                                           bool includeAttributes = true, bool includeKeywords = true)
        {
            var dotNetEvent = source as IDotNetEvent;

            return(dotNetEvent.FormatCSharpDeclarationSyntax(includeSecurity, includeAttributes, includeKeywords));
        }