NotNull.cs 756 B

12345678910111213141516171819
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2018 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using System;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Serialization
  7. * @{
  8. */
  9. /// <summary>
  10. /// Attribute that signifies that a field or a property containing a reference type should never be assigned null (i.e.
  11. /// it should always contain a valid object instance). Primarily used as a hint to the editor inspector.
  12. /// </summary>
  13. [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
  14. public sealed class NotNull : Attribute { }
  15. /** @} */
  16. }