Advertisement
cheprogrammer

UniqueEntity Code

Feb 25th, 2016
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1.     [Serializable]
  2.     public abstract class UniqueEntity
  3.     {
  4.         /// <summary>
  5.         /// Unique Entity ID
  6.         /// </summary>
  7.         public UInt16 ID { get; set; }
  8.  
  9.         /// <summary>
  10.         /// Gets or sets generic entity name
  11.         /// </summary>
  12.         public string Name = "default";
  13.  
  14.         protected UniqueEntity()
  15.         {
  16.             ID = 0;
  17.         }
  18.  
  19.         public virtual void Initialize()
  20.         {
  21.            
  22.         }
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement