in

@Prog! - ASP.NET(C#) AJAX -

ASP.NET(C#) 2.0 & ASP.NET Ajax (ATLAS) のメモ書き

タグによる表示

  • Re: カスタム属性を作る

    public class MyClass1 { [ColumnMapping("あいうえお")] public int ABC { get { return 0; } } } public class MyClass2 { [Mapping("かきくけこ")] public int DEF { get { return 0; } } } static void Main(string[ args) { Test t = new Test(); MyClass1 myClass = new MyClass1(); foreach (var s in t.GetAttributePropertyList<MyClass1...
    投稿場所: C# .NET (Forum) 投稿者: ASANO 投稿日時: 2008/01/10
  • カスタム属性を収得する(System.Attribute)

    using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TestConsoleApplication { class Program { [AttributeUsage(AttributeTargets.Property)] public class ColumnMappingAttribute : System.Attribute { private string _name; public ColumnMappingAttribute(string name...
    投稿場所: C# .NET (Forum) 投稿者: ASANO 投稿日時: 2008/01/10
ページ 1 / 1 (2 アイテム)