public void LoadFrom(Stream stream) { BinaryReader reader = new BinaryReader(stream); int numElements = reader.ReadInt32(); m_Data = new SkeletonMaskElement[numElements]; for (int i = 0; i < numElements; i++) { m_Data[i] = new SkeletonMaskElement(stream); } }