private static void CreateFieldsFromFile(ClientContext context, string filePath) { var fieldPersister = new FilePersistanceProvider <List <ShField> >(filePath); var fieldManager = new FieldManager(context, fieldPersister.Load()); fieldManager.CreateFields(); }