I am trying build a string which have two parts of strings it errors out .....Here is my code below
 StringBuilder str = new StringBuilder();          
            str.AppendFormat("{0}",GetAccessor(attr, rootTblName)).AppendLine();                
            str.Append("}").AppendLine();
            return str.ToString();
 private string GetAccessor(DataAttribute attr, string rootTblName)
        {
            return string.Format("get { return {0}.{1}; }", 
                GetRootPvtMember(rootTblName), 
                attr.MdlPart.InternalName
            );
        }
the error : input string format not valid....... It fails i mean error out due to the "{" ,"}" in the GetAccessor return string with out them its working , but i need them like that . so any work around plz.....
 
     
    