Mono.Xaml.XamlParser.XmlnsDefsForAssembly C# (CSharp) Method

XmlnsDefsForAssembly() private method

private XmlnsDefsForAssembly ( string xmlns, Assembly asm ) : System.Windows.Markup.XmlnsDefinitionAttribute[]
xmlns string
asm System.Reflection.Assembly
return System.Windows.Markup.XmlnsDefinitionAttribute[]
		private XmlnsDefinitionAttribute [] XmlnsDefsForAssembly (string xmlns, Assembly asm)
		{
			// TODO: We can cache these easily enough
			XmlnsDefinitionAttribute [] defs = (XmlnsDefinitionAttribute []) asm.GetCustomAttributes (typeof (XmlnsDefinitionAttribute), false);

			var res = from x in defs where x.XmlNamespace == xmlns select x;
			return res.ToArray ();
		}