Ejemplo n.º 1
0
        /// <summary>
        /// Create metadata reference from a MetaDslx model group.
        /// </summary>
        /// <param name="model">A MetaDslx model.</param>
        /// <exception cref="ArgumentNullException"><paramref name="modelGroup"/> is null.</exception>
        public static ModelReference CreateFromModelGroup(ImmutableModelGroup modelGroup)
        {
            if (modelGroup == null)
            {
                throw new ArgumentNullException(nameof(modelGroup));
            }

            return(new ModelReference(ModelGroupMetadata.CreateFromModelGroup(modelGroup), MetadataReferenceProperties.Module, DocumentationProvider.Default, null, null));
        }
Ejemplo n.º 2
0
 // creates a copy
 private ModelGroupMetadata(ModelGroupMetadata metadata)
     : base(isImageOwner: false, id: metadata.Id)
 {
     _modelGroup = metadata.ModelGroup;
 }