/// <summary> Make a new entry of this type with an optional name </summary> public GLAtomicBlock NewAtomicBlock(int bindingindex, string name = null) { GLAtomicBlock sb = new GLAtomicBlock(bindingindex); items[EnsureName(name)] = sb; return(sb); }
/// <summary> Add this type with an optional name </summary> public GLAtomicBlock Add(GLAtomicBlock disp, string name = null) { System.Diagnostics.Debug.Assert(!items.ContainsValue(disp)); items.Add(EnsureName(name), disp); return(disp); }