void Write1_Object(string n, string ns, global::System.Object o, bool isNullable, bool needType, string parentRuntimeNs = null, string parentCompileTimeNs = null)
        {
            string defaultNamespace = parentRuntimeNs;

            if ((object)o == null)
            {
                if (isNullable)
                {
                    WriteNullTagLiteral(n, ns);
                }
                return;
            }
            if (!needType)
            {
                System.Type t = o.GetType();
                if (t == typeof(global::System.Object))
                {
                }
                else
                {
                    WriteTypedPrimitive(n, ns, o, true);
                    return;
                }
            }
            WriteStartElement(n, ns, o, false, null);
            WriteEndElement(o);
        }
Пример #2
0
        void Write1_Object(string n, string ns, global::System.Object o, bool isNullable, bool needType, string parentRuntimeNs = null, string parentCompileTimeNs = null)
        {
            string defaultNamespace = parentRuntimeNs;

            if ((object)o == null)
            {
                if (isNullable)
                {
                    WriteNullTagLiteral(n, ns);
                }
                return;
            }
            if (!needType)
            {
                System.Type t = o.GetType();
                if (t == typeof(global::System.Object))
                {
                }
                else if (t == typeof(global::NavigationMenuSample.Models.PersistModel))
                {
                    Write2_PersistModel(n, ns, (global::NavigationMenuSample.Models.PersistModel)o, isNullable, true);
                    return;
                }
                else if (t == typeof(global::System.Collections.Generic.List <global::NavigationMenuSample.Models.PersistModel>))
                {
                    Writer.WriteStartElement(n, ns);
                    WriteXsiType(@"ArrayOfPersistModel", @"");
                    {
                        global::System.Collections.Generic.List <global::NavigationMenuSample.Models.PersistModel> a = (global::System.Collections.Generic.List <global::NavigationMenuSample.Models.PersistModel>)o;
                        if (a != null)
                        {
                            for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++)
                            {
                                string namespace5 = (parentCompileTimeNs == @"" && parentRuntimeNs != null) ? parentRuntimeNs : @"";
                                Write2_PersistModel(@"PersistModel", namespace5, ((global::NavigationMenuSample.Models.PersistModel)a[ia]), true, false, namespace5, @"");
                            }
                        }
                    }
                    Writer.WriteEndElement();
                    return;
                }
                else
                {
                    WriteTypedPrimitive(n, ns, o, true);
                    return;
                }
            }
            WriteStartElement(n, ns, o, false, null);
            WriteEndElement(o);
        }
Пример #3
0
 public static global::System.Func <T1, T2, TResult> GetFunc <T1, T2, TResult>(this global::System.Object target, global::System.String name, global::System.Reflection.BindingFlags flags)
 {
     return(target.GetMethod <global::System.Func <T1, T2, TResult> >(target.GetType(), name, flags));
 }
Пример #4
0
 public static global::System.Func <T1, T2, TResult> GetFunc <T1, T2, TResult>(this global::System.Object target, global::System.String name)
 {
     return(target.GetMethod <global::System.Func <T1, T2, TResult> >(target.GetType(), name));
 }
Пример #5
0
 public static global::System.Action <T1, T2> GetAction <T1, T2>(this global::System.Object target, global::System.String name)
 {
     return(target.GetMethod <global::System.Action <T1, T2> >(target.GetType(), name));
 }
Пример #6
0
 public static global::System.Action <T> GetAction <T>(this global::System.Object target, global::System.String name, global::System.Reflection.BindingFlags flags)
 {
     return(target.GetMethod <global::System.Action <T> >(target.GetType(), name, flags));
 }
Пример #7
0
 public static global::System.Action <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> GetAction <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(this global::System.Object target, global::System.String name, global::System.Reflection.BindingFlags flags)
 {
     return(target.GetMethod <global::System.Action <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> >(target.GetType(), name, flags));
 }
Пример #8
0
 public static global::System.Action <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> GetAction <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this global::System.Object target, global::System.String name)
 {
     return(target.GetMethod <global::System.Action <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> >(target.GetType(), name));
 }
Пример #9
0
 public static global::DataVault.Core.Helpers.Func <T1, T2, T3, T4, T5, T6, T7, TResult> GetFunc <T1, T2, T3, T4, T5, T6, T7, TResult>(this global::System.Object target, global::System.String name, global::System.Reflection.BindingFlags flags)
 {
     return(target.GetMethod <global::DataVault.Core.Helpers.Func <T1, T2, T3, T4, T5, T6, T7, TResult> >(target.GetType(), name, flags));
 }
Пример #10
0
 public static global::DataVault.Core.Helpers.Func <T1, T2, T3, T4, T5, TResult> GetFunc <T1, T2, T3, T4, T5, TResult>(this global::System.Object target, global::System.String name)
 {
     return(target.GetMethod <global::DataVault.Core.Helpers.Func <T1, T2, T3, T4, T5, TResult> >(target.GetType(), name));
 }
Пример #11
0
 public static global::DataVault.Core.Helpers.Action <T1, T2, T3, T4, T5, T6, T7> GetAction <T1, T2, T3, T4, T5, T6, T7>(this global::System.Object target, global::System.String name)
 {
     return(target.GetMethod <global::DataVault.Core.Helpers.Action <T1, T2, T3, T4, T5, T6, T7> >(target.GetType(), name));
 }