Cargando...
Buscando...
Nada coincide
FieldNameAttribute.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
7{
11 [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
12 public sealed class FieldNameAttribute : Attribute
13 {
14 private readonly string _name = string.Empty;
19 public FieldNameAttribute(string name)
20 {
21 _name = name;
22 }
23
27 public string GetFiedlName()
28 {
29 return _name;
30 }
31 }
32}
string GetFiedlName()
Devuelve el fieldName del attributo.