示例#1
0
        static void PerfTest1(int count, int length)
        {
            for (int i = 0; i < count; i++)
            {
                InternalObjectId[] internalIds = new InternalObjectId[length];
                for (int k = 0; k < length; k++)
                {
                    internalIds[k] = new InternalObjectId(10, k + 1);
                }

                ObjectId[] publicIds = new ObjectId[length];
                for (int k = 0; k < length; k++)
                {
                    publicIds[k] = new ObjectId(internalIds[k]);
                }
            }
        }
示例#2
0
 internal ObjectId(InternalObjectId id)
 {
     m_TypeId     = id.TypeId;
     m_InstanceId = id.InstanceId;
 }