public ScriptEntry(Type type, string key, string script, ScriptEntryFormat format) { Key = key; Type = type; Script = script; Format = format; }
public ScriptEntry (Type type, string key, string script, ScriptEntryFormat format) { Key = key; Type = type; Script = script; Format = format; }
void RegisterScript (ref ScriptEntry scriptList, Type type, string key, string script, ScriptEntryFormat format) { ScriptEntry last = null; ScriptEntry entry = scriptList; while (entry != null) { if (entry.Type == type && entry.Key == key) return; last = entry; entry = entry.Next; } entry = new ScriptEntry (type, key, script, format); if (last != null) last.Next = entry; else scriptList = entry; }
void RegisterScript(ref ScriptEntry scriptList, Type type, string key, string script, ScriptEntryFormat format) { ScriptEntry last = null; ScriptEntry entry = scriptList; while (entry != null) { if (entry.Type == type && entry.Key == key) { return; } last = entry; entry = entry.Next; } entry = new ScriptEntry(type, key, script, format); if (last != null) { last.Next = entry; } else { scriptList = entry; } }