< Summary

Class:Azure.DigitalTwins.Core.Serialization.ComponentMetadata
Assembly:Azure.DigitalTwins.Core
File(s):C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.DigitalTwins.Core\src\Serialization\ComponentMetadata.cs
Covered lines:0
Uncovered lines:1
Coverable lines:1
Total lines:25
Line coverage:0% (0 of 1)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_WriteableProperties()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\digitaltwins\Azure.DigitalTwins.Core\src\Serialization\ComponentMetadata.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5using System.Text.Json.Serialization;
 6
 7namespace Azure.DigitalTwins.Core.Serialization
 8{
 9    /// <summary>
 10    /// An optional, helper class for deserializing a digital twin.
 11    /// The $metadata class on a <see cref="BasicDigitalTwin"/> and <see cref="ModelProperties"/>.
 12    /// </summary>
 13    /// <remarks>
 14    /// For more samples, see <see href="https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/digitaltwins/Azure.D
 15    /// </remarks>
 16    public class ComponentMetadata
 17    {
 18        /// <summary>
 19        /// Model-defined writable properties' request state.
 20        /// </summary>
 21        /// <remarks>For your convenience, the value of each dictionary object can be turned into an instance of <see cr
 22        [JsonExtensionData]
 023        public IDictionary<string, object> WriteableProperties { get; } = new Dictionary<string, object>();
 24    }
 25}

Methods/Properties

get_WriteableProperties()