AutoMapFromAttribute.cs 364 B

123456789101112131415
  1. using System;
  2. namespace VCommon.VAutoMapper
  3. {
  4. [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
  5. public sealed class AutoMapFromAttribute : Attribute
  6. {
  7. public Type[] FromTypes { get; }
  8. public AutoMapFromAttribute(params Type[] fromTypes)
  9. {
  10. FromTypes = fromTypes;
  11. }
  12. }
  13. }