title: Updating SharePoint field links
body: <p>I used a piece of code that retrieves a field link for a specified content type and sets the field to either required or not required. This works fine but when I try to do the same for a field that has spaces in the name, the code throws an error.</p>
  
  <pre><code>SPField col = //some column retrieved from a list
  SPContentType ct = col.ParentList.ContentTypes["MyContentTypeName"] //gets the content type
  
  SPFieldLink fieldLink = ct.FieldLinks["MyFieldname"]; // gets the fieldLink
  ct.Update(); 
  </code></pre>
  
  <p>It works if <code>MyFieldName</code> is a string like "Hobbies" or "Amount", but fails if it's a string like "Full Name".</p>
  
  <p>Is there a workaround?</p>