コード例 #1
0
ファイル: Data.cs プロジェクト: KOpenMOS/Mos
        protected ReferenceList <T> GetReferenceList <T>(string key)
            where T : Element
        {
            var list = new ReferenceList <T>();

            foreach (var id in GetList(key))
            {
                list.Add(new Reference <T>(id));
            }
            return(list);
        }
コード例 #2
0
ファイル: Data.cs プロジェクト: KOpenMOS/Mos
        public ReferenceList <Property> GetAllProperties(Context context)
        {
            var properties = new ReferenceList <Property>();

            properties.AddRange(Properties);
            properties.AddRange(ImportedProperties);
            var superclass = Superclass.Get(context);

            if (superclass != null)
            {
                properties.AddRange(superclass.GetAllProperties(context));
            }
            return(properties);
        }