示例#1
0
        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);
            }
        }
示例#2
0
        public override IType check(Context context)
        {
            AttributeDeclaration decl = context.getRegisteredDeclaration <AttributeDeclaration>(name);

            return(decl.getIType());
        }