Example #1
0
                static dataCloser()
                {
                    Type       targetType = typeof(dataCloser);
                    MethodInfo extensionMethod;

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Write");

                    if ((object)extensionMethod != null)
                    {
                        s_WriteByRef = extensionMethod.CreateStaticDelegate(typeof(WriteByRef)) as WriteByRef;

                        if ((object)s_WriteByRef == null)
                        {
                            s_WriteByVal = extensionMethod.CreateStaticDelegate(typeof(WriteByVal)) as WriteByVal;
                        }
                    }

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Close");

                    if ((object)extensionMethod != null)
                    {
                        s_CloseByRef = extensionMethod.CreateStaticDelegate(typeof(CloseByRef)) as CloseByRef;

                        if ((object)s_CloseByRef == null)
                        {
                            s_CloseByVal = extensionMethod.CreateStaticDelegate(typeof(CloseByVal)) as CloseByVal;
                        }
                    }
                }
Example #2
0
                static readTrackingBody()
                {
                    Type       targetType = typeof(readTrackingBody);
                    MethodInfo extensionMethod;

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Read");

                    if ((object)extensionMethod != null)
                    {
                        s_ReadByRef = extensionMethod.CreateStaticDelegate(typeof(ReadByRef)) as ReadByRef;

                        if ((object)s_ReadByRef == null)
                        {
                            s_ReadByVal = extensionMethod.CreateStaticDelegate(typeof(ReadByVal)) as ReadByVal;
                        }
                    }

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Close");

                    if ((object)extensionMethod != null)
                    {
                        s_CloseByRef = extensionMethod.CreateStaticDelegate(typeof(CloseByRef)) as CloseByRef;

                        if ((object)s_CloseByRef == null)
                        {
                            s_CloseByVal = extensionMethod.CreateStaticDelegate(typeof(CloseByVal)) as CloseByVal;
                        }
                    }
                }
Example #3
0
                static listener()
                {
                    Type       targetType = typeof(listener);
                    MethodInfo extensionMethod;

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Accept");

                    if ((object)extensionMethod != null)
                    {
                        s_AcceptByRef = extensionMethod.CreateStaticDelegate(typeof(AcceptByRef)) as AcceptByRef;

                        if ((object)s_AcceptByRef == null)
                        {
                            s_AcceptByVal = extensionMethod.CreateStaticDelegate(typeof(AcceptByVal)) as AcceptByVal;
                        }
                    }

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Close");

                    if ((object)extensionMethod != null)
                    {
                        s_CloseByRef = extensionMethod.CreateStaticDelegate(typeof(CloseByRef)) as CloseByRef;

                        if ((object)s_CloseByRef == null)
                        {
                            s_CloseByVal = extensionMethod.CreateStaticDelegate(typeof(CloseByVal)) as CloseByVal;
                        }
                    }

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Addr");

                    if ((object)extensionMethod != null)
                    {
                        s_AddrByRef = extensionMethod.CreateStaticDelegate(typeof(AddrByRef)) as AddrByRef;

                        if ((object)s_AddrByRef == null)
                        {
                            s_AddrByVal = extensionMethod.CreateStaticDelegate(typeof(AddrByVal)) as AddrByVal;
                        }
                    }
                }
Example #4
0
                static loggingConn()
                {
                    Type       targetType = typeof(loggingConn);
                    MethodInfo extensionMethod;

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Read");

                    if ((object)extensionMethod != null)
                    {
                        s_ReadByRef = extensionMethod.CreateStaticDelegate(typeof(ReadByRef)) as ReadByRef;

                        if ((object)s_ReadByRef == null)
                        {
                            s_ReadByVal = extensionMethod.CreateStaticDelegate(typeof(ReadByVal)) as ReadByVal;
                        }
                    }

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Write");

                    if ((object)extensionMethod != null)
                    {
                        s_WriteByRef = extensionMethod.CreateStaticDelegate(typeof(WriteByRef)) as WriteByRef;

                        if ((object)s_WriteByRef == null)
                        {
                            s_WriteByVal = extensionMethod.CreateStaticDelegate(typeof(WriteByVal)) as WriteByVal;
                        }
                    }

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Close");

                    if ((object)extensionMethod != null)
                    {
                        s_CloseByRef = extensionMethod.CreateStaticDelegate(typeof(CloseByRef)) as CloseByRef;

                        if ((object)s_CloseByRef == null)
                        {
                            s_CloseByVal = extensionMethod.CreateStaticDelegate(typeof(CloseByVal)) as CloseByVal;
                        }
                    }

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("LocalAddr");

                    if ((object)extensionMethod != null)
                    {
                        s_LocalAddrByRef = extensionMethod.CreateStaticDelegate(typeof(LocalAddrByRef)) as LocalAddrByRef;

                        if ((object)s_LocalAddrByRef == null)
                        {
                            s_LocalAddrByVal = extensionMethod.CreateStaticDelegate(typeof(LocalAddrByVal)) as LocalAddrByVal;
                        }
                    }

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("RemoteAddr");

                    if ((object)extensionMethod != null)
                    {
                        s_RemoteAddrByRef = extensionMethod.CreateStaticDelegate(typeof(RemoteAddrByRef)) as RemoteAddrByRef;

                        if ((object)s_RemoteAddrByRef == null)
                        {
                            s_RemoteAddrByVal = extensionMethod.CreateStaticDelegate(typeof(RemoteAddrByVal)) as RemoteAddrByVal;
                        }
                    }

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("SetDeadline");

                    if ((object)extensionMethod != null)
                    {
                        s_SetDeadlineByRef = extensionMethod.CreateStaticDelegate(typeof(SetDeadlineByRef)) as SetDeadlineByRef;

                        if ((object)s_SetDeadlineByRef == null)
                        {
                            s_SetDeadlineByVal = extensionMethod.CreateStaticDelegate(typeof(SetDeadlineByVal)) as SetDeadlineByVal;
                        }
                    }

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("SetReadDeadline");

                    if ((object)extensionMethod != null)
                    {
                        s_SetReadDeadlineByRef = extensionMethod.CreateStaticDelegate(typeof(SetReadDeadlineByRef)) as SetReadDeadlineByRef;

                        if ((object)s_SetReadDeadlineByRef == null)
                        {
                            s_SetReadDeadlineByVal = extensionMethod.CreateStaticDelegate(typeof(SetReadDeadlineByVal)) as SetReadDeadlineByVal;
                        }
                    }

                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("SetWriteDeadline");

                    if ((object)extensionMethod != null)
                    {
                        s_SetWriteDeadlineByRef = extensionMethod.CreateStaticDelegate(typeof(SetWriteDeadlineByRef)) as SetWriteDeadlineByRef;

                        if ((object)s_SetWriteDeadlineByRef == null)
                        {
                            s_SetWriteDeadlineByVal = extensionMethod.CreateStaticDelegate(typeof(SetWriteDeadlineByVal)) as SetWriteDeadlineByVal;
                        }
                    }
                }
                                static internalObjFile()
                                {
                                    Type       targetType = typeof(internalObjFile);
                                    MethodInfo extensionMethod;

                                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Name");

                                    if ((object)extensionMethod != null)
                                    {
                                        s_NameByRef = extensionMethod.CreateStaticDelegate(typeof(NameByRef)) as NameByRef;

                                        if ((object)s_NameByRef == null)
                                        {
                                            s_NameByVal = extensionMethod.CreateStaticDelegate(typeof(NameByVal)) as NameByVal;
                                        }
                                    }

                                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Base");

                                    if ((object)extensionMethod != null)
                                    {
                                        s_BaseByRef = extensionMethod.CreateStaticDelegate(typeof(BaseByRef)) as BaseByRef;

                                        if ((object)s_BaseByRef == null)
                                        {
                                            s_BaseByVal = extensionMethod.CreateStaticDelegate(typeof(BaseByVal)) as BaseByVal;
                                        }
                                    }

                                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("BuildID");

                                    if ((object)extensionMethod != null)
                                    {
                                        s_BuildIDByRef = extensionMethod.CreateStaticDelegate(typeof(BuildIDByRef)) as BuildIDByRef;

                                        if ((object)s_BuildIDByRef == null)
                                        {
                                            s_BuildIDByVal = extensionMethod.CreateStaticDelegate(typeof(BuildIDByVal)) as BuildIDByVal;
                                        }
                                    }

                                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("SourceLine");

                                    if ((object)extensionMethod != null)
                                    {
                                        s_SourceLineByRef = extensionMethod.CreateStaticDelegate(typeof(SourceLineByRef)) as SourceLineByRef;

                                        if ((object)s_SourceLineByRef == null)
                                        {
                                            s_SourceLineByVal = extensionMethod.CreateStaticDelegate(typeof(SourceLineByVal)) as SourceLineByVal;
                                        }
                                    }

                                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Symbols");

                                    if ((object)extensionMethod != null)
                                    {
                                        s_SymbolsByRef = extensionMethod.CreateStaticDelegate(typeof(SymbolsByRef)) as SymbolsByRef;

                                        if ((object)s_SymbolsByRef == null)
                                        {
                                            s_SymbolsByVal = extensionMethod.CreateStaticDelegate(typeof(SymbolsByVal)) as SymbolsByVal;
                                        }
                                    }

                                    extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Close");

                                    if ((object)extensionMethod != null)
                                    {
                                        s_CloseByRef = extensionMethod.CreateStaticDelegate(typeof(CloseByRef)) as CloseByRef;

                                        if ((object)s_CloseByRef == null)
                                        {
                                            s_CloseByVal = extensionMethod.CreateStaticDelegate(typeof(CloseByVal)) as CloseByVal;
                                        }
                                    }
                                }