コード例 #1
0
ファイル: NHElementFactory.cs プロジェクト: willrawls/arp
        private void CreateTypeWithNHAliasReferenceAttributeValue(INHElement element, IXmlAttribute attribute)
        {
            if (attribute.Value == null)
                return;

            var parser = new ReferenceParser();
            var newElement = parser.ParseReferenceType(attribute.Value, new NHGlobalQualifier(element));
            ReplaceAttributeValue(attribute, newElement);
        }
コード例 #2
0
ファイル: NHElementFactory.cs プロジェクト: willrawls/arp
        private void CreateTypeReferenceAttributeValue(INHElement element, IXmlAttribute attribute)
        {
            if (attribute.Value == null)
                return;

            ReferenceParser parser = new ReferenceParser();
            IXmlAttributeValue newElement = parser.ParseReferenceType(attribute.Value, null);
            ReplaceAttributeValue(attribute, newElement);
        }