public object SetObjectData( object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector )
        {
            var data = info.GetInt32( "data" );
            ( ( GenericParameterHelper )obj ).Data = data;

            return obj;
        }
            /// <summary>
            /// Populates the object using the information in the SerializationInfo
            /// </summary>
            /// <param name="obj">The object to populate.</param>
            /// <param name="info">The information to populate the object.</param>
            /// <param name="context">The source from which the object is deserialized.</param>
            /// <param name="selector">The surrogate selector where the search for a compatible surrogate begins.</param>
            /// <returns></returns>
            Object ISerializationSurrogate.SetObjectData(Object obj, SerializationInfo info, StreamingContext context,
                ISurrogateSelector selector)
            {
                throw new NotSupportedException();
                /*
                _hatchBrush = new HatchBrush(
                    (HatchStyle)info.GetValue("HatchStyle", typeof(HatchStyle)),
                    (Color)info.GetValue("ForegroundColor", typeof(Color)),
                    (Color)info.GetValue("BackgroundColor", typeof(Color)));

                return _hatchBrush;
                 */
                /*
                Utility.SetPropertyValue(ref obj, "HatchStyle", Utility.PrivateInstance,
                    (HatchStyle)info.GetValue("HatchStyle", typeof(HatchStyle)));

                Console.WriteLine(((HatchBrush)obj).HatchStyle);
                Utility.SetFieldValue(ref obj, "ForegroundColor", Utility.PrivateInstance,
                    );

                Utility.SetFieldValue(ref obj, "BackgroundColor", Utility.PrivateInstance,
                    (Color)info.GetValue("BackgroundColor", typeof(Color)));

                return null;
                 */
            }
 public BinaryFormatter(ISurrogateSelector selector, StreamingContext context)
 {
     this.m_typeFormat = FormatterTypeStyle.TypesAlways;
     this.m_securityLevel = TypeFilterLevel.Full;
     this.m_surrogates = selector;
     this.m_context = context;
 }
        public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
        {
            typeof(Point).GetField("X").SetValue(obj, info.GetString("X"));
            typeof(Point).GetField("Y").SetValue(obj, info.GetString("Y"));

            return null;
        }
 public virtual ISerializationSurrogate GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector ssout)
 {
     if (type == null)
     {
         throw new ArgumentNullException("type");
     }
     if (type.IsMarshalByRef)
     {
         ssout = this;
         return this._remotingSurrogate;
     }
     if (s_IMethodCallMessageType.IsAssignableFrom(type) || s_IMethodReturnMessageType.IsAssignableFrom(type))
     {
         ssout = this;
         return this._messageSurrogate;
     }
     if (s_ObjRefType.IsAssignableFrom(type))
     {
         ssout = this;
         return this._objRefSurrogate;
     }
     if (this._next != null)
     {
         return this._next.GetSurrogate(type, context, out ssout);
     }
     ssout = null;
     return null;
 }
Example #6
0
 /// <summary>
 /// Populates the object using the information in the SerializationInfo
 /// </summary>
 /// <param name="obj">The object to populate.</param>
 /// <param name="info">The information to populate the object.</param>
 /// <param name="context">The source from which the object is deserialized.</param>
 /// <param name="selector">The surrogate selector where the search for a compatible surrogate begins.</param>
 /// <returns></returns>
 public Object SetObjectData(Object obj, SerializationInfo info, StreamingContext context,
                             ISurrogateSelector selector)
 {
     float[] elements = (float[]) info.GetValue("Elements", typeof (float[]));
     Matrix mat = new Matrix(elements[0], elements[1], elements[2], elements[3], elements[4], elements[5]);
     return null;
 }
		public virtual object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
		{
			Diagram diagram = (Diagram) obj;

			diagram.SuspendEvents = true;
			diagram.Suspend();
			
			mShapes = (Elements) info.GetValue("Shapes",typeof(Elements));
			mLines = (Elements) info.GetValue("Lines",typeof(Elements));
			mLayers = (Layers) info.GetValue("Layers",typeof(Layers));
			
			//Diagram is created without a constructor, so need to do some initialization
			diagram.SetRender(new Render());

			diagram.DiagramSize = Serialize.GetSize(info.GetString("DiagramSize"));
			diagram.Zoom = info.GetSingle("Zoom");
			diagram.ShowTooltips = info.GetBoolean("ShowTooltips");
			diagram.Paged = info.GetBoolean("Paged");
			diagram.CheckBounds = info.GetBoolean("CheckBounds");
			diagram.Margin = (Margin) info.GetValue("Margin",typeof(Margin));
			diagram.WorkspaceColor = Color.FromArgb(Convert.ToInt32(info.GetString("WorkspaceColor")));
			if (Serialize.Contains(info,"Animator", typeof(Animator))) diagram.Animator = (Animator) info.GetValue("Animator", typeof(Animator));

			diagram.Resume();
			diagram.SuspendEvents = false;
			return diagram;
		}
        public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
        {
            Keyframe[] keyframes;

            AnimationCurve curve=new AnimationCurve();

            //	curve.preWrapMode=(WrapMode)info.GetValue("preWrapMode",typeof(WrapMode));
            //	curve.postWrapMode=(WrapMode)info.GetValue("postWrapMode",typeof(WrapMode));

            int numKeys=info.GetInt32("keysn");

            keyframes=new Keyframe[numKeys];

            Keyframe keyframeCurrent;
            for (int i=0; i<numKeys; i++) {
                keyframeCurrent=keyframes[i]=new Keyframe(info.GetSingle("keyt"+i),
                info.GetSingle("keyv"+i));
                keyframeCurrent.tangentMode=info.GetInt32("keymod"+i);
                keyframeCurrent.inTangent=info.GetSingle("keyin"+i);
                keyframeCurrent.outTangent=info.GetSingle("keyout"+i);
            }

            curve.keys = keyframes;

            // don't know how to make connection between AnimaitonCurver and Keyframes surrogate
            // AnimationCurve surrogate keys are constructed before thoose in Keyframe surrogate resulting in 0,0 Keyframes
            //return new AnimationCurve((Keyframe[])info.GetValue ("keys", typeof(Keyframe[])));

            return curve;
        }
 /// <summary>
 /// Adds the specified <see cref="T:System.Runtime.Serialization.ISurrogateSelector"/> that
 /// can handle a particular object type to the list of surrogates.
 /// </summary>
 /// <param name="selector">The surrogate selector to add.</param>
 /// <exception cref="T:System.ArgumentNullException">The
 /// <paramref name="selector"/>parameter is null.</exception>
 /// <exception cref="T:System.Runtime.Serialization.SerializationException">The selector is
 /// already on the list of selectors.</exception>
 /// <exception cref="T:System.Security.SecurityException">The caller does not have the
 /// required permission.</exception>
 public virtual void ChainSelector(ISurrogateSelector selector) {
     if (selector == null)
         throw new ArgumentNullException("Selector is null.");
     if (_nextSelector != null)
         selector.ChainSelector(_nextSelector);
     _nextSelector = selector;
 }
        /// <summary>
        /// Returns the surrogate for a particular type.
        /// </summary>
        ///
        /// <returns>The surrogate for a particular type.</returns>
        /// <param name="type">The <see cref="T:System.Type"/> for which the surrogate is
        /// requested.</param>
        /// <param name="context">The streaming context.</param>
        /// <param name="selector">The surrogate to use.</param>
        /// <exception cref="T:System.ArgumentNullException">The
        /// <paramref name="type"/>parameter is null.</exception>
        /// <exception cref="T:System.Security.SecurityException">The caller does not have the
        /// required permission.</exception>
        /// <PermissionSet><IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="SerializationFormatter"/></PermissionSet>
        public virtual ISerializationSurrogate GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector selector) {
            if (type == null) {
                throw new ArgumentNullException("type is null.");
            }

            Dictionary<StreamingContextStates, ISerializationSurrogate> surrogates;
            ISerializationSurrogate serializationSurrogate = null;
            if (_surrogates.TryGetValue(type, out surrogates)) {
                surrogates.TryGetValue(context.State, out serializationSurrogate);
            }

            if (serializationSurrogate != null) {
                selector = this;
                return serializationSurrogate;
            }

            else {
                if (_nextSelector != null) {
                    return _nextSelector.GetSurrogate(type, context, out selector);
                }

                selector = null;
                return null;
            }
        }
Example #11
0
 object ISerializationSurrogate.SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
 {
     var blend = (ColorBlend)obj;
     blend.Colors = (Color[])info.GetValue("Colors", typeof(Color[]));
     blend.Positions = (float[])info.GetValue("Positions", typeof(float[]));
     return null;
 }
Example #12
0
 public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
 {
     var res = (Resolution)obj;
     res.Id = info.GetString("id");
     res.UnitsPerPixel = info.GetDouble("upp");
     return res;
 }
Example #13
0
 object ISerializationSurrogate.SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
 {
     var blend = (ColorMap)obj;
     blend.OldColor = (Color)info.GetValue("old", typeof(Color));
     blend.NewColor = (Color)info.GetValue("new", typeof(Color));
     return null;
 }
		public override object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
		{
			base.SetObjectData(obj,info,context,selector);

			Model model = (Model) obj;
			
			model.SuspendEvents = true;
			model.Suspend();

			model.AlignGrid = info.GetBoolean("AlignGrid");
			model.DragScroll = info.GetBoolean("DragScroll");
			model.DrawGrid = info.GetBoolean("DrawGrid");
			model.DrawPageLines = info.GetBoolean("DrawPageLines");
			model.DrawSelections = info.GetBoolean("DrawSelections");
			model.GridColor = Color.FromArgb(Convert.ToInt32(info.GetString("GridColor")));
			model.GridSize = Serialize.GetSize(info.GetString("GridSize"));
			model.GridStyle = (GridStyle) Enum.Parse(typeof(GridStyle), info.GetString("GridStyle"));
			model.PageLineSize = Serialize.GetSizeF(info.GetString("PageLineSize"));

			if (Serialize.Contains(info,"DragSelect")) model.DragSelect = info.GetBoolean("DragSelect");

			mRuntime = (Runtime) info.GetValue("Runtime",typeof(Runtime));

			model.SuspendEvents = false;
			model.Resume();
			
			return model;
		}
Example #15
0
		public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
		{
			int @int = info.GetInt32("value");
			LayerMask layerMask = default(LayerMask);
			layerMask.value = @int;
			return layerMask;
		}
Example #16
0
 public object SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
 {
   ModelStencil modelStencil = (ModelStencil)obj;
   try
   {
     modelStencil.Groups = (ArrayList)info.GetValue("groups", typeof(ArrayList));
   }
   catch
   {
     modelStencil.Groups = new ArrayList();
     modelStencil.Groups.Add((String)info.GetValue("groupName", typeof(String)));
   }
   modelStencil.Anchors = (ArrayList)info.GetValue("anchors", typeof(ArrayList));
   modelStencil.Decorations = (ArrayList)info.GetValue("decorations", typeof(ArrayList));
   modelStencil.Elements = (ArrayList)info.GetValue("elements", typeof(ArrayList));
   modelStencil.Tag = (String)info.GetValue("tag", typeof(String));
   try
   {
     modelStencil.DefaultSize = (Size)info.GetValue("defaultSize", typeof(String));
   }
   catch
   {
     modelStencil.DefaultSize = new Size(10.0, 10.0);
   }
   return modelStencil;
 }
Example #17
0
        [System.Security.SecurityCritical]  // auto-generated
        private static bool HasCycle(ISurrogateSelector selector) {
            ISurrogateSelector head;
            ISurrogateSelector tail; 

            Contract.Assert(selector!=null, "[HasCycle]selector!=null"); 
 

            head = selector; 
            tail = selector;

            while (head!=null) {
                head = head.GetNextSelector(); 
                if (head==null) {
                    return true; 
                } 
                if (head==tail) {
                    return false; 
                }
                head = head.GetNextSelector();
                tail = tail.GetNextSelector();
 
                if (head==tail) {
                    return false; 
                } 
            }
 
            return true;

        }
Example #18
0
 internal ObjectManager(ISurrogateSelector selector, StreamingContext context, bool checkSecurity, bool isCrossAppDomain)
 {
     _objects = new ObjectHolder[DefaultInitialSize];
     _selector = selector;
     _context = context;
     _isCrossAppDomain = isCrossAppDomain;
 }
Example #19
0
 public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
 {
     Utility.SetFieldValue(ref obj, "_baseUrl", Utility.PrivateInstance, info.GetString("baseUrl"));
     Utility.SetFieldValue(ref obj, "_token", Utility.PrivateInstance, info.GetString("token"));
     Utility.SetFieldValue(ref obj, "_mapType", Utility.PrivateInstance, info.GetChar("mapType"));
     return obj;
 }
        public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
        {
            var session = getSession(context);

            //Return a reference to a tracked object if available.
            var rawInternalId = info.GetValue(AggregateReferenceSurrogate.ReferenceInfoKey, typeof(InternalId));

            if (rawInternalId == null)
                throw new InvalidOperationException("Expected SerializationInfo to contain an internal id for an aggregate");

            var internalId = (InternalId)rawInternalId;

            if(session.GraphIsTracked(internalId))
                return session.TrackedGraphForInternalId(internalId);

            //To avoid circular references in separate deserialisation sessions, we track active deserialisations.
            session.RecordActiveDeserialization(internalId, obj);

            //If we are not tracking already, then deserialise.
            var data =
                getSerializableMembers(obj, context)
                    .Select(_ => info.GetValue(_.Name, ((FieldInfo)_).FieldType))
                    .ToArray();

            //Returns the passed in obj ref.
            return FormatterServices.PopulateObjectMembers(obj, getSerializableMembers(obj, context), data);
        }
 public void ChainSelector(ISurrogateSelector selector)
 {
     if(nextSelector == null)
         nextSelector = selector;
     else
         nextSelector.ChainSelector(selector);
 }
Example #22
0
 public object SetObjectData(object obj, SerializationInfo info, StreamingContext context,
     ISurrogateSelector selector)
 {
     foreach (var f in GetFields(obj))
         f.SetValue(obj, info.GetValue(f.Name, f.FieldType));
     return obj;
 }
 public SoapFormatter(ISurrogateSelector selector, StreamingContext context)
 {
     this.m_assemblyFormat = FormatterAssemblyStyle.Full;
     this.m_securityLevel = TypeFilterLevel.Full;
     this.m_surrogates = selector;
     this.m_context = context;
 }
 public BinaryFormatter()
 {
     this.m_typeFormat = FormatterTypeStyle.TypesAlways;
     this.m_securityLevel = TypeFilterLevel.Full;
     this.m_surrogates = null;
     this.m_context = new StreamingContext(StreamingContextStates.All);
 }
 public SoapFormatter()
 {
     this.m_assemblyFormat = FormatterAssemblyStyle.Full;
     this.m_securityLevel = TypeFilterLevel.Full;
     this.m_surrogates = null;
     this.m_context = new StreamingContext(StreamingContextStates.All);
 }
        public void ChainSelector (ISurrogateSelector! selector) {
        /*
            CodeContract.Requires(selector != null);
            CodeContract.Requires(selector != this);
            */

        }
        public object SetObjectData(object obj, SerializationInfo info, StreamingContext context,
                                    ISurrogateSelector selector)
        {
            FieldInfo[] fieldInfos =
                obj.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            foreach (FieldInfo fi in fieldInfos)
            {
                if (IsKnownType(fi.FieldType))
                {
                    //var value = info.GetValue(fi.Name, fi.FieldType);

                    if (IsNullableType(fi.FieldType))
                    {
                        // Nullable<argumentValue>
                        Type argumentValueForTheNullableType = GetFirstArgumentOfGenericType(fi.FieldType);
                        //fi.FieldType.GetGenericArguments()[0];
                        fi.SetValue(obj, info.GetValue(fi.Name, argumentValueForTheNullableType));
                    }
                    else
                    {
                        fi.SetValue(obj, info.GetValue(fi.Name, fi.FieldType));
                    }
                }
                else if (fi.FieldType.IsClass)
                {
                    fi.SetValue(obj, info.GetValue(fi.Name, fi.FieldType));
                }
            }

            return obj;
        }
		public SoapReader(SerializationBinder binder, ISurrogateSelector selector, StreamingContext context) 
		{
			_binder = binder;
			objMgr = new ObjectManager(selector, context);
			_context = context;
			_surrogateSelector = selector;
			_fieldIndices = new Hashtable();
		}
Example #29
0
        public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector) {
            float r = info.GetSingle("r");
            float g = info.GetSingle("g");
            float b = info.GetSingle("b");
            float a = info.GetSingle("a");

            return new Color(r, g, b, a);
        }
Example #30
0
 public NetDataContractSerializer(StreamingContext context,
     int maxItemsInObjectGraph,
     bool ignoreExtensionDataObject,
     FormatterAssemblyStyle assemblyFormat,
     ISurrogateSelector surrogateSelector)
 {
     Initialize(context, maxItemsInObjectGraph, ignoreExtensionDataObject, assemblyFormat, surrogateSelector);
 }
Example #31
0
        object ISerializationSurrogate.SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
        {
            var type   = info.GetValue <Type>(NameType);
            var target = info.GetValue <object>(NameTarget);
            var method = info.GetValue <MethodInfo>(NameMethod);

            //this checks if azure function assembly is changed and maps the delegate to
            //the new dynamic assembly generated.
            if (method.Module.Assembly.FullName != this.assembly.FullName &&
                Utils.RemoveAzureFunctionsDynamicSuffix(method.Module.Assembly.FullName) == Utils.RemoveAzureFunctionsDynamicSuffix(this.assembly.FullName))
            {
                return(Delegate.CreateDelegate(type, target, this.GetMethodInfoFromCurrentAssembly(method)));
            }

            return(Delegate.CreateDelegate(type, target, method));
        }
Example #32
0
        /// <summary>
        /// Populates the object using the information in the <see cref="T:System.Runtime.Serialization.SerializationInfo"></see>.
        /// </summary>
        /// <param name="obj">The object to populate.</param>
        /// <param name="info">The information to populate the object.</param>
        /// <param name="context">The source from which the object is deserialized.</param>
        /// <param name="selector">The surrogate selector where the search for a compatible surrogate begins.</param>
        /// <returns>The populated deserialized object.</returns>
        /// <exception cref="T:System.ArgumentNullException">The SerializationInfo info cannot be null.</exception>
        /// <exception cref="T:System.SerializationException">The type does not implement the ISerializable interface.</exception>
        /// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission. </exception>
        public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
        {
            if (null == info)
            {
                throw new ArgumentNullException("info", "Serialization info cannot be null.");
            }

            //Assembly assembly = Assembly.Load(info.AssemblyName);
            //Type objectType = assembly.GetType(info.FullTypeName);
            string assemblyQualifiedTypeName = string.Format("{0}, {1}", info.FullTypeName, info.AssemblyName);
            Type   objectType = new TypeParser().Resolve(assemblyQualifiedTypeName);

            if (!typeof(ISerializable).IsAssignableFrom(objectType))
            {
                throw new SerializationException(String.Format("Type '{0}' in Assembly '{1}' does not implement Interface '{2}'.", objectType.FullName, objectType.Assembly.FullName, typeof(ISerializable).FullName));
            }


            if (null == obj)
            {
                obj = FormatterServices.GetUninitializedObject(objectType);
            }

            ConstructorInfo constructor = objectType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new Type[] { typeof(SerializationInfo), typeof(StreamingContext) }, null);

            constructor.Invoke(obj, new object[] { info, context });

            return(obj);
        }
        /// <summary>
        /// Creates a new instance of the BinarySerialization class with an underlying BinaryFormatter created
        /// with the supplied arguments
        /// </summary>
        public BinarySerializationProvider(ISurrogateSelector selector, StreamingContext context)
        {
            _logger.DebugMethodCalled(selector, context);

            UnderlyingSerializer = new BinaryFormatter(selector, context);
        }
    public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
    {
        Color color = (Color)obj;

        color.r = (float)info.GetValue("r", typeof(float));
        color.g = (float)info.GetValue("g", typeof(float));
        color.b = (float)info.GetValue("b", typeof(float));
        color.a = (float)info.GetValue("a", typeof(float));

        obj = color;

        return(obj);
    }
Example #35
0
        // Token: 0x0600A9B3 RID: 43443 RVA: 0x003EF398 File Offset: 0x003ED598
        public object JCJAMHGEBNO(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("id", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("ShowTitle", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("_EmissionGain", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("ScrollPanel", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #36
0
        // Token: 0x0600A9B5 RID: 43445 RVA: 0x003EF4E0 File Offset: 0x003ED6E0
        public object AKNFGBPIFMF(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("_ScreenResolution", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("restrictions", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("FileMenu", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("FinalScoreSmallText", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #37
0
        // Token: 0x0600A9AE RID: 43438 RVA: 0x003EF0F4 File Offset: 0x003ED2F4
        public object GKPPNDMJDJG(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("_Near", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("SpawnObj", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("_Intensity", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("/icon", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #38
0
        // Token: 0x0600A9CD RID: 43469 RVA: 0x003F0084 File Offset: 0x003EE284
        public object HIHIFGINMAM(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("EnableRankedNotificationsToggle", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("menu.enableselectormusic", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("player.circle", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("_Bullet_7", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #39
0
        // Token: 0x0600A9C8 RID: 43464 RVA: 0x003EFE70 File Offset: 0x003EE070
        public object IIHDDLHDGPC(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("workshop.", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("_Red_C", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("#highscore", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("Object ID. Case-Sensitive", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #40
0
        // Token: 0x0600A9AC RID: 43436 RVA: 0x003EEFF4 File Offset: 0x003ED1F4
        public object AKCCLCLONAC(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("Set satellite emission (glow)", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("_Value", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("[MapsData] Caching ", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("<b>", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #41
0
        // Token: 0x0600A9C6 RID: 43462 RVA: 0x003EFD70 File Offset: 0x003EDF70
        public object PNFKODNFDFB(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("ExitButton", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("https://store.steampowered.com/itemstore/513510/", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("z", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("CameraFilterPack/Glasses_On", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #42
0
        // Token: 0x0600A9C3 RID: 43459 RVA: 0x003EFC70 File Offset: 0x003EDE70
        public object KCANKKIDDAH(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("_Value3", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue(" - StoreAuthURLResponse] - ", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue(".lastCheckpoint.playerdistance", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue(": ", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #43
0
        // Token: 0x0600A9BE RID: 43454 RVA: 0x003EF984 File Offset: 0x003EDB84
        public object SetObjectData(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("x", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("y", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("z", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("w", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #44
0
        // Token: 0x0600A9C0 RID: 43456 RVA: 0x003EFACC File Offset: 0x003EDCCC
        public object OOLCCDLMKBE(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("_Value2", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("Joystick1Button4", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("Jul", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("[PlayerController] ", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #45
0
        // Token: 0x0600A9B8 RID: 43448 RVA: 0x003EF63C File Offset: 0x003ED83C
        public object AABEPDOMFKF(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("ShadersToggle", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("move", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("_Extra", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("mapselector.orderby", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #46
0
        // Token: 0x0600A9AF RID: 43439 RVA: 0x003EF198 File Offset: 0x003ED398
        public object KLIMLHMAHEL(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("SettingsCanvas", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("_Color_G", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("_Visualize", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("kick", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #47
0
        // Token: 0x0600A9B4 RID: 43444 RVA: 0x003EF43C File Offset: 0x003ED63C
        public object MEHBOCECAEB(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("_GlowColor", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("skin.hit_wrong", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("_ScreenResolution", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("Connection error: ", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #48
0
        // Token: 0x0600A9AA RID: 43434 RVA: 0x003EEEAC File Offset: 0x003ED0AC
        public object OBIHMEGBINE(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue(".played", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("0.00", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue(" ", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("\t", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #49
0
        // Token: 0x0600A9B2 RID: 43442 RVA: 0x003EF2F4 File Offset: 0x003ED4F4
        public object EKECPBCHFCE(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue(" ", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue(") error: ", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("Fade", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("#reward: ", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #50
0
 object ISerializationSurrogate.SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
 {
     throw new NotImplementedException();
 }
Example #51
0
 /// <summary>
 /// Populates the provided SerializationInfo with the data needed to serialize the object.
 /// </summary>
 /// <param name="obj">The object to serialize.</param>
 /// <param name="info">The SerializationInfo to populate with data.</param>
 /// <param name="context">The destination for this serialization.</param>
 object ISerializationSurrogate.SetObjectData(Object obj, SerializationInfo info, StreamingContext context,
                                              ISurrogateSelector selector)
 {
     return(null);
 }
Example #52
0
            object ISerializationSurrogate.SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
            {
                var type   = obj.GetType();
                var fields = type.GetFields(Flags);

                foreach (var field in fields)
                {
                    var value = info.GetValue(field.Name, field.FieldType);
                    field.SetValue(obj, value);
                }

                return(obj);
            }
        public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
        {
            var legacySnapshot = new LegacyPackedMemorySnapshot();

            legacySnapshot.m_NativeTypes   = Array.ConvertAll(info.GetValue("m_NativeTypes", typeof(LegacyMemoryProfiler.PackedNativeType[])) as LegacyMemoryProfiler.PackedNativeType[], x => (PackedNativeType)x);
            legacySnapshot.m_NativeObjects = Array.ConvertAll(info.GetValue("m_NativeObjects", typeof(LegacyMemoryProfiler.PackedNativeUnityEngineObject[])) as LegacyMemoryProfiler.PackedNativeUnityEngineObject[], x => (PackedNativeUnityEngineObject)x);
            if (m_isPre2018_3_impl)
            {
                legacySnapshot.m_GCHandles = Array.ConvertAll(info.GetValue(JsonFormatTokenChanges.kGcHandles.OldField, typeof(LegacyMemoryProfiler.PackedGCHandle[])) as LegacyMemoryProfiler.PackedGCHandle[], x => (PackedGCHandle)x);
            }
            else
            {
                legacySnapshot.m_GCHandles = Array.ConvertAll(info.GetValue(JsonFormatTokenChanges.kGcHandles.NewField, typeof(LegacyMemoryProfiler.PackedGCHandle[])) as LegacyMemoryProfiler.PackedGCHandle[], x => (PackedGCHandle)x);
            }
            legacySnapshot.m_Connections               = Array.ConvertAll(info.GetValue("m_Connections", typeof(LegacyMemoryProfiler.Connection[])) as LegacyMemoryProfiler.Connection[], x => (Connection)x);
            legacySnapshot.m_ManagedHeapSections       = Array.ConvertAll(info.GetValue("m_ManagedHeapSections", typeof(LegacyMemoryProfiler.MemorySection[])) as LegacyMemoryProfiler.MemorySection[], x => (MemorySection)x);
            legacySnapshot.m_ManagedStacks             = Array.ConvertAll(info.GetValue("m_ManagedStacks", typeof(LegacyMemoryProfiler.MemorySection[])) as LegacyMemoryProfiler.MemorySection[], x => (MemorySection)x);
            legacySnapshot.m_TypeDescriptions          = Array.ConvertAll(info.GetValue("m_TypeDescriptions", typeof(LegacyMemoryProfiler.TypeDescription[])) as LegacyMemoryProfiler.TypeDescription[], x => (TypeDescription)x);
            legacySnapshot.m_VirtualMachineInformation = (VirtualMachineInformation)(LegacyMemoryProfiler.VirtualMachineInformation)info.GetValue("m_VirtualMachineInformation", typeof(LegacyMemoryProfiler.VirtualMachineInformation));
            return(legacySnapshot);
        }
Example #54
0
        // Token: 0x0600A9BC RID: 43452 RVA: 0x003EF884 File Offset: 0x003EDA84
        public object CJBEEELPGBC(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("Obtain promo Item", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("Sequence contains no elements", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue(".", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("_DistortionLevel", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #55
0
        // Token: 0x0600A9AB RID: 43435 RVA: 0x003EEF50 File Offset: 0x003ED150
        public object KCLOMJJCNFG(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("ClearEnvironment", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("Best region found in PlayerPrefs. Connecting to: ", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("SetParticlesInput", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("closed", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #56
0
        // Token: 0x0600A9BA RID: 43450 RVA: 0x003EF784 File Offset: 0x003ED984
        public object ICPNAMPLLDI(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("Toggle {0} is not part of ToggleGroup {1}", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("CameraFilterPack/Blend2Camera_SplitScreen3D", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("settings.enablehitsoundsinrelax", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("OnClick", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #57
0
 [System.Security.SecurityCritical]  // auto-generated
 public Object SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
 {
     return(innerSurrogate.SetObjectData(obj, info, context, selector));
 }
Example #58
0
        // Token: 0x0600A9B9 RID: 43449 RVA: 0x003EF6E0 File Offset: 0x003ED8E0
        public object GFJALHJGKHF(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("_TimeX", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("_InvRenderTargetSize", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("CameraFilterPack/FX_Funk", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue(": ", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #59
0
        // Token: 0x0600A9C2 RID: 43458 RVA: 0x003EFBCC File Offset: 0x003EDDCC
        public object MKFLFNJLCEO(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("_MainTex2", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue("_Value8", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("Messages (shift+tab)", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("CameraFilterPack/Sharpen_Sharpen", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }
Example #60
0
        // Token: 0x0600A9BF RID: 43455 RVA: 0x003EFA28 File Offset: 0x003EDC28
        public object OFNDBOIPPMA(object AGPIGANJKMN, SerializationInfo DAGALCAILLN, StreamingContext CKALHHFJPBN, ISurrogateSelector PGBBGIOBPGB)
        {
            Quaternion quaternion = (Quaternion)AGPIGANJKMN;

            quaternion.x = (float)DAGALCAILLN.GetValue("ResetSpeed", typeof(float));
            quaternion.y = (float)DAGALCAILLN.GetValue(":", typeof(float));
            quaternion.z = (float)DAGALCAILLN.GetValue("#tryagain", typeof(float));
            quaternion.w = (float)DAGALCAILLN.GetValue("_Value4", typeof(float));
            AGPIGANJKMN  = quaternion;
            return(AGPIGANJKMN);
        }