AzureLens.Areas.HelpPage.ModelDescriptions.ModelDescriptionGenerator.GenerateCollectionModelDescription C# (CSharp) Method

GenerateCollectionModelDescription() private method

private GenerateCollectionModelDescription ( Type modelType, Type elementType ) : CollectionModelDescription
modelType System.Type
elementType System.Type
return CollectionModelDescription
        private CollectionModelDescription GenerateCollectionModelDescription(Type modelType, Type elementType)
        {
            ModelDescription collectionModelDescription = GetOrCreateModelDescription(elementType);
            if (collectionModelDescription != null)
            {
                return new CollectionModelDescription
                {
                    Name = ModelNameHelper.GetModelName(modelType),
                    ModelType = modelType,
                    ElementDescription = collectionModelDescription
                };
            }

            return null;
        }