public string Generate()
        {
            ScorpioReflectUtil.SortType(m_Delegates);
            string str = Template;

            str = str.Replace("__Namespace", string.IsNullOrEmpty(Namespace) ? "ScorpioDelegate" : Namespace);
            str = str.Replace("__ClassName", string.IsNullOrEmpty(ClassName) ? "ScorpioDelegateFactory" : ClassName);
            str = str.Replace("__CreateDelegate", CreateDelegate());
            return(str);
        }
Пример #2
0
 public string Generate(int buildType)
 {
     ScorpioReflectUtil.SortType(m_Delegates);
     return((buildType == 0 ? Template : TemplateIf).Replace("__DelegateList", DelegateList()).Replace("__CreateDelegate", CreateDelegate(buildType)));
 }