using System;
public class Test
{
public static void Main()
{
string s = "Item Name {Item Code} {Item ID}";
int index1 = s.IndexOf('{');
int index2 = s.IndexOf('}');
string result = s.Substring(index1 + 1, index2 - index1 - 1);
Console.WriteLine(result);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgICAgICAgCXN0cmluZyBzID0gIkl0ZW0gTmFtZSB7SXRlbSBDb2RlfSB7SXRlbSBJRH0iOwoJaW50IGluZGV4MSA9IHMuSW5kZXhPZigneycpOwoJaW50IGluZGV4MiA9IHMuSW5kZXhPZignfScpOwoJc3RyaW5nIHJlc3VsdCA9IHMuU3Vic3RyaW5nKGluZGV4MSArIDEsIGluZGV4MiAtIGluZGV4MSAtIDEpOwoJQ29uc29sZS5Xcml0ZUxpbmUocmVzdWx0KTsKCX0KfQ==