小编Vin*_*nay的帖子

Mercurial:标记特定的变更集

我想编写一个应用程序来识别当前的变更集并标记它们.我知道我们可以通过使用获得变更集 hg identify.

一旦我得到变更集,有没有办法可以标记它?

谢谢

tags mercurial changeset

13
推荐指数
1
解决办法
4701
查看次数

foreach字典检查派生类

我有一个基类 Rules.cs.有2个派生类RowRules.csColumnRules.cs.我有另一堂课Test.cs.这个类有一个Dictionary <int, Rules>不断添加值的类.当我遍历字典时,我需要知道值是RowRule还是ColumnRule.为了更好地理解,我有以下代码.

Rules.cs

class Rules
{
    private int m_timepointId = 0;
    private int m_studyId = 0;

    public int TimepointId
    {
        get { return m_timepointId; }
        set { m_timepointId = value;}
    }

    public int StudyId
    {    
        get { return m_studyId; }
        set {m_studyId = value; }
    }
}
Run Code Online (Sandbox Code Playgroud)

RowRules.cs

class RowRules : Rules
{
   private int m_row;

   public int Row
   {
       get { return m_row; }
       set { m_row …
Run Code Online (Sandbox Code Playgroud)

c# foreach dictionary gettype getter-setter

0
推荐指数
1
解决办法
496
查看次数

标签 统计

c# ×1

changeset ×1

dictionary ×1

foreach ×1

getter-setter ×1

gettype ×1

mercurial ×1

tags ×1