Beispiel #1
0
        private bool loadBaseEntries(Chilkat.Log log)
        {
            // Do not add base entries for CkString or CkByteData.
            if (GenericName.Equals("CkString") || GenericName.Equals("CkByteData"))
            {
                return(true);
            }

            Chilkat.Xml xmlBase = new Chilkat.Xml();
            //string baseXmlPath = NoBaseEntries ? GenBase.m_baseUtf8XmlPath : GenBase.m_baseEntriesXmlPath;

            string strBaseEntriesXml = "";

            if (NoBaseEntries)
            {
                strBaseEntriesXml = AppData.GetAppData("appData/apiManager/basePropUtf8.xml");
            }
            else
            {
                strBaseEntriesXml = AppData.GetAppData("appData/apiManager/baseEntries.xml");
            }
            if (!xmlBase.LoadXml(strBaseEntriesXml))
            //if (!xmlBase.LoadXmlFile(baseXmlPath))
            {
                log.LogError("Failed to load baseEntries.xml");
                return(false);
            }
            // No longer need this..
            //xmlBase.AddOrUpdateAttribute("sourceXmlPath", baseXmlPath);

            addClassEntries(xmlBase);
            return(true);
        }
Beispiel #2
0
        private bool loadBaseEntries(Chilkat.Log log)
        {
            // Do not add base entries for CkString or CkByteData.
            if (GenericName.Equals("CkString") || GenericName.Equals("CkByteData"))
            {
                return(true);
            }

            Chilkat.Xml xmlBase     = new Chilkat.Xml();
            string      baseXmlPath = NoBaseEntries ? GenBase.m_baseUtf8XmlPath : GenBase.m_baseEntriesXmlPath;

            if (!xmlBase.LoadXmlFile(baseXmlPath))
            {
                log.LogError("Failed to load baseEntries.xml");
                return(false);
            }
            xmlBase.AddOrUpdateAttribute("sourceXmlPath", baseXmlPath);

            addClassEntries(xmlBase);
            return(true);
        }
 public bool Equals(MethodTypeParams other)
 => GenericName.Equals(other.GenericName) &&
 ConstrainedKind.Equals(other.ConstrainedKind) &&
 ConstrainedTypes.SequenceEqual(other.ConstrainedTypes);