00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace XamlGeneratedNamespace {
00012
00013
00017 [System.Diagnostics.DebuggerNonUserCodeAttribute()]
00018 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
00019 public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper {
00020
00024 protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) {
00025 return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)
00026 | (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture);
00027 }
00028
00032 protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) {
00033 return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture);
00034 }
00035
00039 protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) {
00040 propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture);
00041 }
00042
00046 protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) {
00047 return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod
00048 | (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] {
00049 delegateType,
00050 handler}, null)));
00051 }
00052
00056 protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
00057 eventInfo.AddEventHandler(target, handler);
00058 }
00059 }
00060 }
00061