void PopulateMember(Context context, IStored stored, IInstance instance, String name) { AttributeDeclaration decl = context.getRegisteredDeclaration <AttributeDeclaration>(name); if (!decl.Storable) { return; } if (stored.HasData(name)) { Object data = stored.GetData(name); IValue value = decl.getIType().ConvertCSharpValueToIValue(context, data); instance.SetMemberValue(context, name, value); } }
public override IType check(Context context) { AttributeDeclaration decl = context.getRegisteredDeclaration <AttributeDeclaration>(name); return(decl.getIType()); }