Microsoft.CodeAnalysis.Sarif.Errors.GetMessageFormatResourceForNotification C# (CSharp) Method

GetMessageFormatResourceForNotification() private static method

private static GetMessageFormatResourceForNotification ( string notificationId ) : string
notificationId string
return string
        private static string GetMessageFormatResourceForNotification(string notificationId)
        {
            string resourceName = notificationId.Replace('.', '_');

            return (string)typeof(SdkResources)
                            .GetProperty(resourceName, BindingFlags.NonPublic | BindingFlags.Static)
                            .GetValue(obj: null, index: null);
        }