public void Start(Type type) { Contract.RequiresNotNull(type); int typeId = BuildXLWriterStats.GetTypeId(type); Start(typeId); }
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); } }
public void Start <T>() { int typeId = BuildXLWriterStats.GetTypeId(typeof(T)); Start(typeId); }