DeterministicIdGenerator.cs 270 B

123456789101112
  1. using System;
  2. using XamlX.Transform;
  3. namespace Avalonia.Build.Tasks
  4. {
  5. public class DeterministicIdGenerator : IXamlIdentifierGenerator
  6. {
  7. private int _nextId = 1;
  8. public string GenerateIdentifierPart() => (_nextId++).ToString();
  9. }
  10. }