File: Internals\AutoId.cs
Web Access
Project: src\src\Controls\src\Core\Controls.Core.csproj (Microsoft.Maui.Controls)
#nullable disable
using System.ComponentModel;
 
namespace Microsoft.Maui.Controls.Internals
{
	[EditorBrowsable(EditorBrowsableState.Never)]
	public sealed class AutoId
	{
		int _current;
 
		public int Value => _current;
 
		public int Increment()
		{
			var old = _current;
 
			_current++;
 
			return old;
		}
	}
}