コード例 #1
0
        string GetDecorate(MethodDecorateType type)
        {
            string decorateValue = "";

            if (type == MethodDecorateType.Default)
            {
                decorateValue = this.m_decorateTypes[(int)type];
            }
            else
            {
                decorateValue = this.m_decorateTypes[(int)type] + " ";
            }
            return(decorateValue);
        }
コード例 #2
0
 string GetMethodContent(MethodDecorateType type, string returnType)
 {
     if (type == MethodDecorateType.Abstract)
     {
         this.m_methodContent = ";";
     }
     else
     {
         string returnValue = null;
         if (returnType != null)
         {
             returnValue = string.Format("return {0};", GetReturn(returnType));
         }
         else
         {
             returnValue = "";
         }
         this.m_methodContent = this.m_methodContent.Replace("#ReturnValue#", returnValue);
     }
     return(this.m_methodContent);
 }
コード例 #3
0
 public void SetDecorate(MethodDecorateType type)
 {
     this.m_decorateType = type;
 }