< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.MessagePropertyAttribute
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/MessagePropertyAttribute.cs
Line coverage
33%
Covered lines: 2
Uncovered lines: 4
Coverable lines: 6
Total lines: 27
Line coverage: 33.3%
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

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/MessagePropertyAttribute.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.MessageMember, Inherited = false)]
 9    public sealed class MessagePropertyAttribute : Attribute
 10    {
 11        private string _name;
 12
 2813        public MessagePropertyAttribute() { }
 14
 15        public string Name
 16        {
 017            get => _name;
 18            set
 19            {
 020                IsNameSetExplicit = true;
 021                _name = value;
 022            }
 23        }
 24
 225        internal bool IsNameSetExplicit { get; private set; }
 26    }
 27}