From 6cf985bead302804d61be4b8111a025598ff02f9 Mon Sep 17 00:00:00 2001 From: Anders Bjerner Date: Sat, 13 Jul 2019 14:58:48 +0200 Subject: [PATCH] Added missing XML documentation --- .../Attributes/GridViewAttribute.cs | 10 ++++++++++ src/Skybrud.Umbraco.GridData/GridDataModel.cs | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/src/Skybrud.Umbraco.GridData/Attributes/GridViewAttribute.cs b/src/Skybrud.Umbraco.GridData/Attributes/GridViewAttribute.cs index cb7d021..28f9bc4 100644 --- a/src/Skybrud.Umbraco.GridData/Attributes/GridViewAttribute.cs +++ b/src/Skybrud.Umbraco.GridData/Attributes/GridViewAttribute.cs @@ -2,11 +2,21 @@ namespace Skybrud.Umbraco.GridData.Attributes { + /// + /// Attribute used for specifying the suggested view path for a grid control value. + /// [AttributeUsage(AttributeTargets.Class)] public class GridViewAttribute : Attribute { + /// + /// Gets the suggested view path. + /// public string ViewPath { get; } + /// + /// Initializes a new instance based on the specified . + /// + /// The suggested view path. public GridViewAttribute(string viewPath) { if (string.IsNullOrWhiteSpace(viewPath)) throw new ArgumentNullException(nameof(viewPath)); ViewPath = viewPath; diff --git a/src/Skybrud.Umbraco.GridData/GridDataModel.cs b/src/Skybrud.Umbraco.GridData/GridDataModel.cs index 7b3d612..8a95f14 100644 --- a/src/Skybrud.Umbraco.GridData/GridDataModel.cs +++ b/src/Skybrud.Umbraco.GridData/GridDataModel.cs @@ -204,6 +204,12 @@ public static GridDataModel Deserialize(string json, string propertyTypeAlias) { } + /// + /// Deserializes the specified string into an instance of . + /// + /// The JSON string to be deserialized. + /// The alias of the property the Grid model is representing. + /// The Grid configuration to be used. public static GridDataModel Deserialize(string json, string propertyTypeAlias, IGridConfig config) { // Validate the JSON