While creating a sample Spec Explorer application, you have this feeling of being lost. The thing is if you follow the steps of the Modeling Guidance (using the "Author a model from scratch" option), you'll soon get lost since the steps and the sample code are not consistent and continuous.
For example, in Step 1, you have this code in the Example section:
config Main
{
action abstract static void CalculatorAdapter.Add(int x, int y);
action abstract event static void CalculatorAdapter.Show(int z);
}
then, in Steps 2.2 "Declare a rule methods for actions in your config.", you'll be given assistance by the "Declare rule methods" wizard (the blue hyperlink when you expand the sub-step), which when you follow, will create these codes:
static class ModelProgram
{
[Action("Add(x, y)")]
static void Add(int x, int y)
{
throw new NotImplementedException();
}
[Action("Show(z)")]
static void Show(int z)
{
throw new NotImplementedException();
}
}
But then again, when you go to the bottom of that step, you have this example:
static class ModelProgram
{
static bool b; //state variable
[Action]
static void Negate() //rule method
{ b = !b; }
}
So the question becomes: which are the correct codes, the one in the Example section or the one generated by the wizard?
性愛影片網性愛影片直播觀賞性愛影片直播網直播網性愛影片直播性愛影片性愛影片性愛式影片性愛幻想處女影片性愛天使貼影片性影片小魔女字拍天堂小高聊天是小高聊天網小高聊天小高無名hkav片hk85cc免費影城thilivetv線上電影hilivetv免費電影hi5影音hi5直播頻道hi5tv影片hi5tv免費影片tvhi5tv免費影片hi5gogoa片線上免費a片影片看免費a片卡通影片免費a片卡通下載免費a片文章免費a片分享限制集情色網限制集限制級丁字褲限制級正妹牆限制級桌不限制級桌布限制級打炮限制級成人圖庫限制級成人色情圖片限制級鋼管視頻聊天室西洋巨乳圖西洋少女情色圖片西洋寫真妹妹西洋寫真
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDelete