コード例 #1
0
        private static void BuildPrefixSignature(Form1ViewModelData viewModel, StringBuilder sb)
        {
            if (viewModel.IsPure)
            {
                sb.AppendLine("[PureMethod]");
            }

            if (viewModel.IsCppMethod)
            {
                sb.AppendFormat("[CppMethodBody(Header = \"{0}\", Code = \"\")]", viewModel.Header);
                sb.AppendLine();
            }
        }
コード例 #2
0
 public CodeBuilder(Type sourceType, string destinationType, Form1ViewModelData viewModel)
 {
     _sourceType      = sourceType;
     _destinationType = destinationType;
     _viewModel       = viewModel;
 }