Skip to content

Instantly share code, notes, and snippets.

@mikeedwards83
Created December 4, 2015 07:41
Show Gist options
  • Save mikeedwards83/292874e49858aba4216f to your computer and use it in GitHub Desktop.
Save mikeedwards83/292874e49858aba4216f to your computer and use it in GitHub Desktop.
Model1.cs
public class Glass1
{
public virtual string Title { get; set; }
}
[TemplateMapping("{76036F5E-CBCE-46D1-AF0A-4143F9B557AA}", "InterfaceMap")]
public partial interface IFortis1 : IItemWrapper
{
ITextFieldWrapper Title { get; }
}
[TemplateMapping("{76036F5E-CBCE-46D1-AF0A-4143F9B557AA}")]
public partial class Fortis1 : ItemWrapper, IFortis1
{
private readonly Item _item;
public Fortis1(Item item, ISpawnProvider spawnProvider)
: base(item, spawnProvider)
{
_item = item;
}
public ITextFieldWrapper Title
{
get { return GetField<TextFieldWrapper>("Title"); }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment