src/NLog/Targets/EventLogTarget.cs
/// <summary>
/// Get the source, if and only if the source is fixed.
/// </summary>
/// <returns><c>null</c> when not <see cref="SimpleLayout.IsFixedText"/></returns>
/// <remarks>Internal for unit tests</remarks>
Get the source, if and only if the source is fixed.
Get the source if and only if the source is fixed .
internal string GetFixedSource()
        {
            if (Source is SimpleLayout simpleLayout && simpleLayout.IsFixedText)
            {
                return simpleLayout.FixedText;
            }
            return null;
        }
internal string GetFixedSource ( ) { if ( Source is SimpleLayout simpleLayout && simpleLayout . IsFixedText ) { return simpleLayout . FixedText ; } return null ; }
Get the source, if and only if the source is fixed.
Get the source if and only if the source is fixed .
None
remarks
Internal for unit tests
Internal for unit tests