Пример #1
0
            public void Read(XmlData rdr)
            {
                name         = rdr.ReadName("name", UNKOWN_NAME);
                excluded     = rdr.ReadBool("excluded", false);
                instrumented = rdr.ReadBool("instrumented", false);

                int    pos;
                string cls = rdr.ReadName("class", UNKOWN_NAME);

                pos = cls.IndexOf("+<");
                if (pos > 0)
                {
                    pos = cls.LastIndexOf('.', pos);
                }
                else
                {
                    pos = cls.LastIndexOf('.');
                }

                if (pos > 0)
                {
                    Namespace = rdr.Name(cls.Substring(0, pos));
                    cls       = cls.Substring(pos + 1);
                }
                else
                {
                    Namespace = "-";
                }

                Class = rdr.Name(cls);
            }
Пример #2
0
            public string document;     //="c:\Projects\svault\src\core\SVault.Core\Services\ServiceAttributes.cs" />

            public void Read(XmlData rdr)
            {
                visitcount = rdr.ReadLong("visitcount", 0);
                line       = rdr.ReadInt("line", 0);
                column     = rdr.ReadInt("column", 0);
                endline    = rdr.ReadInt("endline", line);
                endcolumn  = rdr.ReadInt("endcolumn", column);
                excluded   = rdr.ReadBool("excluded", false);
                document   = rdr.ReadName("document");
            }
Пример #3
0
			public string document;//="c:\Projects\svault\src\core\SVault.Core\Services\ServiceAttributes.cs" />

			public void Read(XmlData rdr)
			{
				visitcount = rdr.ReadLong("visitcount", 0);
				line = rdr.ReadInt("line", 0);
				column = rdr.ReadInt("column", 0);
				endline = rdr.ReadInt("endline", line);
				endcolumn = rdr.ReadInt("endcolumn", column);
				excluded = rdr.ReadBool("excluded", false);
				document = rdr.ReadName("document");
			}
Пример #4
0
			public void Read(XmlData rdr)
			{
				name = rdr.ReadName("name", UNKOWN_NAME);
				excluded = rdr.ReadBool("excluded", false);
				instrumented = rdr.ReadBool("instrumented", false);

				int pos;
				string cls = rdr.ReadName("class", UNKOWN_NAME);
				
				pos = cls.IndexOf("+<");
				if (pos > 0)
					pos = cls.LastIndexOf('.', pos);
				else
					pos = cls.LastIndexOf('.');

				if (pos > 0)
				{
					Namespace = rdr.Name(cls.Substring(0, pos));
					cls = cls.Substring(pos + 1);
				}
				else Namespace = "-";

				Class = rdr.Name(cls);
			}