Beispiel #1
0
 /// <summary>
 /// Constructor to deserialize
 /// </summary>
 /// <param name="info"></param>
 /// <param name="ctxt"></param>
 /// <author>Jannik Arndt</author>
 public Dimension(SerializationInfo info, StreamingContext ctxt)
 {
     Name                  = (string)info.GetValue("Name", typeof(string));
     FromConstraint        = (string)info.GetValue("FromConstraint", typeof(string));
     FromTable             = (string)info.GetValue("FromTable", typeof(string));
     FromColumn            = (string)info.GetValue("FromColumn", typeof(string));
     ToConstraint          = (string)info.GetValue("ToConstraint", typeof(string));
     ToTable               = (string)info.GetValue("ToTable", typeof(string));
     ToColumn              = (string)info.GetValue("ToColumn", typeof(string));
     IsEmptyDimension      = (bool)info.GetBoolean("IsEmptyDimension");
     DimensionLevelsList   = (List <Dimension>)info.GetValue("DimensionLevelsList", typeof(List <Dimension>));
     DimensionContentsList = (List <DimensionContent>)info.GetValue("DimensionContentsList", typeof(List <DimensionContent>));
     DimensionColumnNames  = (DimensionColumnNames)info.GetValue("DimensionColumnNames", typeof(DimensionColumnNames));
     LevelList             = (List <Dimension>)info.GetValue("LevelList", typeof(List <Dimension>));
     _levelListIsBuilt     = (bool)info.GetValue("LevelListIsBuilt", typeof(bool));
 }
 /// <summary>
 /// Constructor to deserialize
 /// </summary>
 /// <param name="info"></param>
 /// <param name="ctxt"></param>
 /// <author>Jannik Arndt</author>
 public Dimension(SerializationInfo info, StreamingContext ctxt)
 {
     Name = (string)info.GetValue("Name", typeof(string));
     FromConstraint = (string)info.GetValue("FromConstraint", typeof(string));
     FromTable = (string)info.GetValue("FromTable", typeof(string));
     FromColumn = (string)info.GetValue("FromColumn", typeof(string));
     ToConstraint = (string)info.GetValue("ToConstraint", typeof(string));
     ToTable = (string)info.GetValue("ToTable", typeof(string));
     ToColumn = (string)info.GetValue("ToColumn", typeof(string));
     IsEmptyDimension = (bool)info.GetBoolean("IsEmptyDimension");
     DimensionLevelsList = (List<Dimension>)info.GetValue("DimensionLevelsList", typeof(List<Dimension>));
     DimensionContentsList = (List<DimensionContent>)info.GetValue("DimensionContentsList", typeof(List<DimensionContent>));
     DimensionColumnNames = (DimensionColumnNames)info.GetValue("DimensionColumnNames", typeof(DimensionColumnNames));
     LevelList = (List<Dimension>)info.GetValue("LevelList", typeof(List<Dimension>));
     _levelListIsBuilt = (bool)info.GetValue("LevelListIsBuilt", typeof(bool));
 }