Esempio n. 1
0
 public static InstanceDefinitionModel Create(InstanceDefinition definition)
 {
     return(new InstanceDefinitionModel
     {
         Description = definition.Description,
         Id = definition.Id,
         Index = definition.Index,
         IsInUse = definition.InUse(2),
         IsAssembly = !definition.IsRoot(),
         Name = definition.HasName? definition.Name : "Unnamed",
         ObjectCount = definition.ObjectCount,
         ObjectIds = definition.GetObjectIds(),
     });
 }