< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.DataContractFormatAttribute
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/DataContractFormatAttribute.cs
Line coverage
25%
Covered lines: 1
Uncovered lines: 3
Coverable lines: 4
Total lines: 22
Line coverage: 25%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/DataContractFormatAttribute.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System;
 5
 6namespace CoreWCF
 7{
 8    [AttributeUsage(CoreWCFAttributeTargets.ServiceContract | CoreWCFAttributeTargets.OperationContract, Inherited = fal
 9    public sealed class DataContractFormatAttribute : Attribute
 10    {
 11        private OperationFormatStyle _style;
 12        public OperationFormatStyle Style
 13        {
 527814            get { return _style; }
 15            set
 16            {
 017                XmlSerializerFormatAttribute.ValidateOperationFormatStyle(_style);
 018                _style = value;
 019            }
 20        }
 21    }
 22}