private bool Weave(Assembly assembly, AssemblyDefinition definition)
        {
            AssemblyWeaverBase weaver = new DependencyPropertyWeaver(assembly, definition);

            weaver.Weave(TypePatternMatch, AttributePatternMatch);

            weaver = new AttachedDependencyPropertyWeaver(assembly, definition);
            weaver.Weave(TypePatternMatch, AttributePatternMatch);

            return(weaver.HasChanges);
        }
        private bool Weave(Assembly assembly, AssemblyDefinition definition)
        {
            AssemblyWeaverBase weaver = new DependencyPropertyWeaver(assembly, definition);
            weaver.Weave(TypePatternMatch, AttributePatternMatch);

            weaver = new AttachedDependencyPropertyWeaver(assembly, definition);
            weaver.Weave(TypePatternMatch, AttributePatternMatch);

            return weaver.HasChanges;
        }