Example #1
0
 private static void AdaptModifiers(dynamic oldType, V104.VisualisableTypeData destination)
 {
     var modifiers104 = new V104.ModifiersData
         {
             Abstract = oldType.Modifiers.Abstract,
             Internal = oldType.Modifiers.Internal,
             Kind = oldType.Modifiers.Kind,
             Private = oldType.Modifiers.Private,
             Sealed = oldType.Modifiers.Sealed,
             ShowConstructors = oldType.Modifiers.ShowConstructors,
             Static = oldType.Modifiers.Static,
         };
     destination.Modifiers = modifiers104;
 }
Example #2
0
        private static void CopyBaseVisualisedType(dynamic oldType, V104.VisualisableTypeData destination)
        {
            // oldType should be of type VisualisableTypeData either v101 or v102
            destination.AssemblyFullName = oldType.AssemblyFullName;
            destination.AssemblyName = oldType.AssemblyName;
            destination.ConstructorCount = oldType.ConstructorCount;
            destination.EnumMemberCount = oldType.EnumMemberCount;
            destination.EventCount = oldType.EventCount;
            destination.FieldCount = oldType.FieldCount;
            destination.FullName = oldType.FullName;
            destination.Id = oldType.Id;
            destination.LinesOfCode = oldType.LinesOfCode;
            destination.LinesOfCodeToolTip = oldType.LinesOfCodeToolTip;
            destination.MethodCount = oldType.MethodCount;
            destination.Name = oldType.Name;
            destination.Namespace = oldType.Namespace;
            destination.PropertyCount = oldType.PropertyCount;
            destination.Show = true;
            destination.ToolTipName = oldType.ToolTipName;

            // MOdifiers
            AdaptModifiers(oldType, destination);
        }