コード例 #1
0
 internal static bool IsExtendedProperty(WorkflowMarkupSerializationManager manager, IList <PropertyInfo> propInfos, XmlQualifiedName xmlQualifiedName)
 {
     foreach (PropertyInfo info in propInfos)
     {
         ExtendedPropertyInfo info2 = info as ExtendedPropertyInfo;
         if (info2 != null)
         {
             string           prefix = string.Empty;
             XmlQualifiedName name   = info2.GetXmlQualifiedName(manager, out prefix);
             if (name.Name.Equals(xmlQualifiedName.Name, StringComparison.Ordinal) && name.Namespace.Equals(xmlQualifiedName.Namespace, StringComparison.Ordinal))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
コード例 #2
0
        internal static bool IsExtendedProperty(WorkflowMarkupSerializationManager manager, IList <PropertyInfo> propInfos, XmlQualifiedName xmlQualifiedName)
        {
            foreach (PropertyInfo propInfo in propInfos)
            {
                ExtendedPropertyInfo extendedProperty = propInfo as ExtendedPropertyInfo;
                if (extendedProperty == null)
                {
                    continue;
                }

                string           prefix = String.Empty;
                XmlQualifiedName qualifiedPropertyName = extendedProperty.GetXmlQualifiedName(manager, out prefix);
                if (qualifiedPropertyName.Name.Equals(xmlQualifiedName.Name, StringComparison.Ordinal) &&
                    qualifiedPropertyName.Namespace.Equals(xmlQualifiedName.Namespace, StringComparison.Ordinal))
                {
                    return(true);
                }
            }

            return(false);
        }