资源简介
MVP经典代码可以很好的认识MVP模式的原理
代码片段和文件信息
//----------------------------------------------------------------------------------------
// patterns & practices - Smart Client Software Factory - Guidance Package
//
// This file was generated by this guidance package as part of the solution template
//
// For more information see:
// ms-help://MS.VSCC.v90/MS.VSIPCC.v90/ms.practices.scsf.2008apr/SCSF/html/03-01-010-How_to_Create_Smart_Client_Solutions.htm
//
// Latest version of this Guidance Package: http://go.microsoft.com/fwlink/?linkId=62182
//----------------------------------------------------------------------------------------
using System;
namespace SmartClient系列.Infrastructure.Interface
{
[AttributeUsage(AttributeTargets.Method AllowMultiple = true Inherited = true)]
public class ActionAttribute : Attribute
{
private string _actionName;
public ActionAttribute(string actionName)
{
_actionName = actionName;
}
public string ActionName
{
get { return _actionName; }
set { _actionName = value; }
}
}
}
评论
共有 条评论