private static Microsoft.Performance.SDK.Processing.ColumnConfiguration ConvertToSdk(
            this ColumnConfiguration dto)
        {
            // These are checked by reference, so they need to point to these instances.
            if (dto.Metadata.Guid == Microsoft.Performance.SDK.Processing.TableConfiguration.PivotColumn.Metadata.Guid)
            {
                return(Microsoft.Performance.SDK.Processing.TableConfiguration.PivotColumn);
            }
            else if (dto.Metadata.Guid == Microsoft.Performance.SDK.Processing.TableConfiguration.LeftFreezeColumn.Metadata.Guid)
            {
                return(Microsoft.Performance.SDK.Processing.TableConfiguration.LeftFreezeColumn);
            }
            else if (dto.Metadata.Guid == Microsoft.Performance.SDK.Processing.TableConfiguration.RightFreezeColumn.Metadata.Guid)
            {
                return(Microsoft.Performance.SDK.Processing.TableConfiguration.RightFreezeColumn);
            }
            else if (dto.Metadata.Guid == Microsoft.Performance.SDK.Processing.TableConfiguration.GraphColumn.Metadata.Guid)
            {
                return(Microsoft.Performance.SDK.Processing.TableConfiguration.GraphColumn);
            }

            var columnConfiguration = new Microsoft.Performance.SDK.Processing.ColumnConfiguration(
                dto.Metadata.ConvertToSdk(),
                dto.DisplayHints.ConvertToSdk());

            return(columnConfiguration);
        }
        private static ColumnConfiguration ConvertToDto(
            this Microsoft.Performance.SDK.Processing.ColumnConfiguration columnConfiguration)
        {
            var dto = new ColumnConfiguration
            {
                DisplayHints = columnConfiguration.DisplayHints.ConvertToDto(),
                Metadata     = columnConfiguration.Metadata.ConvertToDto(),
            };

            return(dto);
        }