A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
354 B

using System.Collections.Generic;
using System.Threading;
namespace Avalonia.Rendering.Composition.Server;
internal class CompositionProperty
{
private static volatile int s_NextId = 1;
public int Id { get; private set; }
public static CompositionProperty Register() => new()
{
Id = Interlocked.Increment(ref s_NextId)
};
}