Following a stripped down class that shows this error on my IDE. Alt+M should show the ctor and the Instance property. When I enable "Show Regions" in the Alt+M, they dont show up.
using System;
using System.Diagnostics;
namespace Q7.Samples
{
/// <summary>
/// This class manages users and access<br/>
/// </summary>
#pragma warning disable CA1001 // Types that own disposable fields should be disposable
public sealed class StrippedDownSample
#pragma warning restore CA1001 // This class is never disposed
{
#region Private Fields
private static readonly Lazy<StrippedDownSample> lazy = new Lazy<StrippedDownSample>(() => new StrippedDownSample());
#endregion Private Fields
#region Private Constructors
/// <summary>
/// Private Constructor => use SecurityHandler.Instance to access
/// </summary>
private StrippedDownSample()
{
}
#endregion Private Constructors
#region Public Properties
/// <summary>
/// Returns the one and only instance of this object (singleton)
/// </summary>
public static StrippedDownSample Instance
{
[DebuggerStepThrough]
get
{
return lazy.Value;
}
}
#endregion Public Properties
}
}