using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; using CaeGlobals; using CaeMesh.Meshing; using DynamicTypeDescriptor; using GmshCommon; namespace CaeMesh { [Serializable] public class ShellGmsh : GmshSetupItem, ISerializable { // Variables // Properties // Constructors public ShellGmsh(string name) : base(name) { Reset(); } public ShellGmsh(ShellGmsh shellGmsh) : base("tmpName") { CopyFrom(shellGmsh); } public ShellGmsh(SerializationInfo info, StreamingContext context) : base(info, context) { foreach (SerializationEntry entry in info) { switch (entry.Name) { default: break; } } } // Methods public override void Reset() { base.Reset(); } public void CopyFrom(ShellGmsh shellGmsh) { base.CopyFrom(shellGmsh); } // ISerialization public new void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); // Using typeof() works also for null fields } } }