OpenRA.Network.SyncReport.DumpSyncTrait C# (CSharp) Méthode

DumpSyncTrait() static private méthode

static private DumpSyncTrait ( ISync sync ) : object[]>.Pair
sync ISync
Résultat object[]>.Pair
        static NamesValuesPair DumpSyncTrait(ISync sync)
        {
            var type = sync.GetType();
            TypeInfo typeInfo;
            lock (typeInfoCache)
                typeInfo = typeInfoCache[type];
            var values = new object[typeInfo.Names.Length];
            var index = 0;

            foreach (var func in typeInfo.SerializableCopyOfMemberFunctions)
                values[index++] = func(sync);

            return Pair.New(typeInfo.Names, values);
        }