GeometryGym.Ifc.ParserIfc.extractValue C# (CSharp) Méthode

extractValue() static private méthode

static private extractValue ( string keyword, string value ) : IfcValue
keyword string
value string
Résultat IfcValue
        internal static IfcValue extractValue(string keyword, string value)
        {
            Type type = Type.GetType("GeometryGym.Ifc." + keyword, false, true);
            if (type != null)
            {
                Type[] interfaces = type.GetInterfaces();
                if (interfaces.Contains(typeof(IfcSimpleValue)))
                    return extractSimpleValue(type, value);
                if (interfaces.Contains(typeof(IfcMeasureValue)))
                    return extractMeasureValue(type, value);
                if (interfaces.Contains(typeof(IfcDerivedMeasureValue)))
                    return extractDerivedMeasureValue(type, value);
            }
            return null;
        }

Usage Example

Exemple #1
0
        internal static IfcValue extractValue(XmlNode node)
        {
            string name = node.Name;

            if (name.EndsWith("-wrapper"))
            {
                name = name.Substring(0, name.Length - 8);
                return(ParserIfc.extractValue(name, node.InnerText));
            }

            return(null);
        }
All Usage Examples Of GeometryGym.Ifc.ParserIfc::extractValue