Ignore:
Timestamp:
01/16/15 11:23:17 (5 years ago)
Author:
jkarder
Message:

#2262: refactored code template loading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Scripting/3.3/Script.cs

    r11721 r11787  
    157157      if (handler != null) handler(this, EventArgs.Empty);
    158158    }
    159 
    160     #region Helpers
    161     protected virtual string ReadCodeTemplate(string templateName) {
    162       using (var stream = Assembly.GetAssembly(this.GetType()).GetManifestResourceStream(templateName))
    163       using (var reader = new StreamReader(stream)) {
    164         return reader.ReadToEnd();
    165       }
    166     }
    167     #endregion
    168159  }
    169160}
Note: See TracChangeset for help on using the changeset viewer.