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); }
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); }
public void SetDecorate(MethodDecorateType type) { this.m_decorateType = type; }