/// <summary> /// Read from a class and write the data to an item. Ensure item is in editing state before calling. /// </summary> /// <typeparam name="T">The type of the class to read from.</typeparam> /// <param name="item">The item to write to</param> /// <param name="target">The class to read from</param> public static void GlassRead <T>(this Item item, T target) where T : class { ISitecoreService service = new SitecoreService(item.Database); service.WriteToItem <T>(target, item); }