Beispiel #1
0
 public Baseline(SourceFile source, ResourceMetadata metadata, ResourceHelpInfo info, BaselineSpec spec)
 {
     Info   = info;
     Source = source;
     Spec   = spec;
     Name   = BaselineId = metadata.Name;
 }
Beispiel #2
0
        public IResource CreateInstance(SourceFile source, ResourceMetadata metadata, CommentMetadata comment, object option)
        {
            var info = new ResourceHelpInfo(comment.Synopsis);

            return((IResource)Activator.CreateInstance(typeof(T), source, metadata, info, option));
        }