Beispiel #1
0
        internal static TypeAssetInfoModel Create(IType type, IProject project, ExampleAssetInfo exampleInfo)
        {
            TypeAssetInfoModel typeAssetInfoModel = new TypeAssetInfoModel();

            typeAssetInfoModel.TypeName    = type.Name;
            typeAssetInfoModel.Namespace   = type.Namespace;
            typeAssetInfoModel.Description = exampleInfo == null || exampleInfo.Description == null?AssetInfoModel.GetDescription(type) : exampleInfo.Description;

            typeAssetInfoModel.SetFullPath(AssetInfoModel.AssemblyLocation(type, project));
            return(typeAssetInfoModel);
        }
Beispiel #2
0
 protected override AssetInfoModel CreateAssetInfoModel(IProject project)
 {
     return((AssetInfoModel)TypeAssetInfoModel.Create(this.Type, project, this.exampleInfo));
 }