< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Description.MessagePropertyAttribute
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Description/MessagePropertyAttribute.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 28
Line coverage: 100%
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/Description/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.Description
 7{
 8    [Obsolete("Use CoreWCF.MessagePropertyAttribute instead. This will be removed in a future release.")]
 9    [AttributeUsage(CoreWCFAttributeTargets.MessageMember, Inherited = false)]
 10    public sealed class MessagePropertyAttribute : Attribute
 11    {
 12        private string _name;
 13
 1014        public MessagePropertyAttribute() { }
 15
 16        public string Name
 17        {
 118            get => _name;
 19            set
 20            {
 121                IsNameSetExplicit = true;
 122                _name = value;
 123            }
 24        }
 25
 426        internal bool IsNameSetExplicit { get; private set; }
 27    }
 28}