Пример #1
0
        public static void exec(object[] items, Type InKeyType, Type InValueType)
        {
            float realtimeSinceStartup = Time.realtimeSinceStartup;

            FieldInfo[] fields = InValueType.GetFields(52);
            for (int i = 0; i < fields.Length; i++)
            {
                FieldInfo fieldInfo = fields[i];
                if (fieldInfo.get_FieldType().get_IsArray())
                {
                    Type elementType = fieldInfo.get_FieldType().GetElementType();
                    if (elementType == typeof(byte))
                    {
                        for (int j = 0; j < items.Length; j++)
                        {
                            object obj = items[j];
                            if (obj != null)
                            {
                                byte[] array  = (byte[])fieldInfo.GetValue(obj);
                                byte[] array2 = TDR_StripString.strip(array);
                                if (array2 != array)
                                {
                                    fieldInfo.SetValue(obj, array2);
                                }
                            }
                        }
                    }
                }
            }
            float realtimeSinceStartup2 = Time.realtimeSinceStartup;

            TDR_StripString.time += (double)(realtimeSinceStartup2 - realtimeSinceStartup);
        }
Пример #2
0
 public static void exec(Dictionary <long, object> .ValueCollection items, Type InKeyType, Type InValueType)
 {
     object[] array = new object[items.get_Count()];
     items.CopyTo(array, 0);
     TDR_StripString.exec(array, InKeyType, InValueType);
 }