MoreExportedFields.cs 762 B

12345678910111213141516171819
  1. using System;
  2. using System.Diagnostics.CodeAnalysis;
  3. #pragma warning disable CS0169
  4. #pragma warning disable CS0414
  5. namespace Godot.SourceGenerators.Sample
  6. {
  7. [SuppressMessage("ReSharper", "BuiltInTypeReferenceStyle")]
  8. [SuppressMessage("ReSharper", "RedundantNameQualifier")]
  9. [SuppressMessage("ReSharper", "ArrangeObjectCreationWhenTypeEvident")]
  10. [SuppressMessage("ReSharper", "InconsistentNaming")]
  11. // We split the definition of ExportedFields to verify properties work across multiple files.
  12. public partial class ExportedFields : GodotObject
  13. {
  14. // Note we use Array and not System.Array. This tests the generated namespace qualification.
  15. [Export] private Int64[] _fieldEmptyInt64Array = Array.Empty<Int64>();
  16. }
  17. }