notundoableattribute.cs

来自「C# 版本的一个三层商业架构」· CS 代码 · 共 18 行

CS
18
字号
using System;

namespace CSLA
{
  /// <summary>
  /// Allows us to mark fields that should not be copied as part of the undo process
  /// </summary>
  /// <remarks>
  /// Marking a variable with this attribute will cause the n-level
  /// undo process to ignore that variable's value. The value will
  /// not be included in a snapshot when BeginEdit is called, nor
  /// will it be restored when CancelEdit is called.
  /// </remarks>
  [AttributeUsage(AttributeTargets.Field)]
  public class NotUndoableAttribute : Attribute
  {}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?