示例#1
0
        public void Start(Type type)
        {
            Contract.RequiresNotNull(type);
            int typeId = BuildXLWriterStats.GetTypeId(type);

            Start(typeId);
        }
示例#2
0
        public void Start <T>()
        {
            if (m_debug)
            {
                int  typeId = BuildXLWriterStats.GetTypeId(typeof(T));
                uint marker = ReadUInt32();
                Contract.Assume(marker == BuildXLWriter.ItemStartMarker);
                int s = ReadInt32();
                if (s != typeId)
                {
                    Contract.Assume(false, "Expected " + typeId + " for start of type " + typeof(T).FullName + ". Instead retrieved " + s + " corresponding to type" + BuildXLWriterStats.GetTypeName(s));
                }

                m_starts.Push(typeId);
            }
        }
示例#3
0
        public void Start <T>()
        {
            int typeId = BuildXLWriterStats.GetTypeId(typeof(T));

            Start(typeId);
        }