Esempio n. 1
0
        public string StartXML(SettingsKey key)
        {
            string result = null;

            string assemblyName = mParentType.Assembly.FullName;

            if (!string.IsNullOrEmpty(assemblyName))
            {
                assemblyName = assemblyName.Split(',')[0];
            }

            result += "  <XML>";
            result += Common.NewLine + "    <FullClassName>" + mParentType.FullName + "," + assemblyName + "</FullClassName>";
            result += Common.NewLine + "    <FieldName>" + mFieldName + "</FieldName>";

            if (key != null)
            {
                result += key.ToXMLString();
            }

            return(result);
        }
Esempio n. 2
0
        public string StartXML(SettingsKey key)
        {
            string result = null;

            string assemblyName = mParentType.Assembly.FullName;
            if (!string.IsNullOrEmpty(assemblyName))
            {
                assemblyName = assemblyName.Split(',')[0];
            }

            result += "  <XML>";
            result += Common.NewLine + "    <FullClassName>" + mParentType.FullName + "," + assemblyName + "</FullClassName>";
            result += Common.NewLine + "    <FieldName>" + mFieldName + "</FieldName>";

            if (key != null)
            {
                result += key.ToXMLString();
            }

            return result;
        }