private Model(SerializationInfo info, StreamingContext context) { elements = info.GetValue <ElementCollection>("elements"); rigidElements = info.GetValue <RigidElementCollection>("rigidElements"); nodes = info.GetValue <NodeCollection>("nodes"); settlementLoadCase = info.GetValue <LoadCase>("settlementLoadCase"); }
private Model(SerializationInfo info, StreamingContext context) { elements = (ElementCollection)info.GetValue("elements", typeof(ElementCollection)); mpcElements = (MpcElementCollection)info.GetValue("mpcElements", typeof(MpcElementCollection)); rigidElements = (RigidElementCollection)info.GetValue("rigidElements", typeof(RigidElementCollection)); telepathyLinks = (TelepathyLinkCollection)info.GetValue("telepathyLinks", typeof(TelepathyLinkCollection)); nodes = (NodeCollection)info.GetValue("nodes", typeof(NodeCollection)); settlementLoadCase = (LoadCase)info.GetValue("settlementLoadCase", typeof(LoadCase)); }
protected Model(SerializationInfo info, StreamingContext context) { Elements = (ElementCollection)info.GetValue("elements", typeof(ElementCollection)); MpcElements = (MpcElementCollection)info.GetValue("mpcElements", typeof(MpcElementCollection)); rigidElements = (RigidElementCollection)info.GetValue("rigidElements", typeof(RigidElementCollection)); //telepathyLinks = (TelepathyLinkCollection)info.GetValue("telepathyLinks", typeof(TelepathyLinkCollection)); Nodes = (NodeCollection)info.GetValue("nodes", typeof(NodeCollection)); settlementLoadCase = (LoadCase)info.GetValue("settlementLoadCase", typeof(LoadCase)); InitPool(); }