我想编写一个应用程序来识别当前的变更集并标记它们.我知道我们可以通过使用获得变更集 hg identify.
一旦我得到变更集,有没有办法可以标记它?
谢谢
我有一个基类 Rules.cs.有2个派生类RowRules.cs和ColumnRules.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)