Last change
on this file since 16279 was
12945,
checked in by jkarder, 9 years ago
|
#2205: disabled compiler warning cs0436 for all code resources
|
File size:
1.3 KB
|
Line | |
---|
1 | #pragma warning disable 436
|
---|
2 |
|
---|
3 | using HeuristicLab.Common;
|
---|
4 | using HeuristicLab.Core;
|
---|
5 |
|
---|
6 | #region How to use the variable store?
|
---|
7 | // use "Vars" to access variables in the variable store (e.g. Vars.x = 5)
|
---|
8 | // use "Vars[string]" to access variables using runtime strings (e.g. Vars["x"] = 5)
|
---|
9 | // use "Vars.Contains(string)" to check if a variable exists
|
---|
10 | // use "Vars.Clear()" to remove all variables
|
---|
11 | // use "foreach (KeyValuePair<string, object> v in Vars) { ... }" to iterate over all variables
|
---|
12 | // use "Variables" to work with IEnumerable<T> extension methods on the variable store
|
---|
13 | #endregion
|
---|
14 |
|
---|
15 | namespace HeuristicLab.Networks.Programmable {
|
---|
16 | [Item("MyProgrammableNetworkItem", "A programmable item of a network.")]
|
---|
17 | public class MyProgrammableNetworkItem : ProgrammableNetworkItem.CompiledProgrammableNetworkItem {
|
---|
18 | protected MyProgrammableNetworkItem(MyProgrammableNetworkItem original, Cloner cloner) : base(original, cloner) { }
|
---|
19 | public MyProgrammableNetworkItem(ProgrammableNetworkItem context) : base(context) { }
|
---|
20 |
|
---|
21 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
22 | return new MyProgrammableNetworkItem(this, cloner);
|
---|
23 | }
|
---|
24 |
|
---|
25 | public override void Initialize() {
|
---|
26 | base.Initialize();
|
---|
27 | // implement initialization here
|
---|
28 | }
|
---|
29 | }
|
---|
30 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.