static ExportedType() { Type targetType = typeof(ExportedType); 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("Error"); if ((object)extensionMethod != null) { s_ErrorByRef = extensionMethod.CreateStaticDelegate(typeof(ErrorByRef)) as ErrorByRef; if ((object)s_ErrorByRef == null) { s_ErrorByVal = extensionMethod.CreateStaticDelegate(typeof(ErrorByVal)) as ErrorByVal; } } }
static dumpConn() { Type targetType = typeof(dumpConn); 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("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; } } }
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; } } }
static nopCloser() { Type targetType = typeof(nopCloser); 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; } } }
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 byteReader() { Type targetType = typeof(byteReader); MethodInfo extensionMethod; extensionMethod = targetType.GetExtensionMethodSearchingPromotions("ReadRune"); if ((object)extensionMethod != null) { s_ReadRuneByRef = extensionMethod.CreateStaticDelegate(typeof(ReadRuneByRef)) as ReadRuneByRef; if ((object)s_ReadRuneByRef == null) { s_ReadRuneByVal = extensionMethod.CreateStaticDelegate(typeof(ReadRuneByVal)) as ReadRuneByVal; } } extensionMethod = targetType.GetExtensionMethodSearchingPromotions("UnreadRune"); if ((object)extensionMethod != null) { s_UnreadRuneByRef = extensionMethod.CreateStaticDelegate(typeof(UnreadRuneByRef)) as UnreadRuneByRef; if ((object)s_UnreadRuneByRef == null) { s_UnreadRuneByVal = extensionMethod.CreateStaticDelegate(typeof(UnreadRuneByVal)) as UnreadRuneByVal; } } extensionMethod = targetType.GetExtensionMethodSearchingPromotions("SkipSpace"); if ((object)extensionMethod != null) { s_SkipSpaceByRef = extensionMethod.CreateStaticDelegate(typeof(SkipSpaceByRef)) as SkipSpaceByRef; if ((object)s_SkipSpaceByRef == null) { s_SkipSpaceByVal = extensionMethod.CreateStaticDelegate(typeof(SkipSpaceByVal)) as SkipSpaceByVal; } } extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Token"); if ((object)extensionMethod != null) { s_TokenByRef = extensionMethod.CreateStaticDelegate(typeof(TokenByRef)) as TokenByRef; if ((object)s_TokenByRef == null) { s_TokenByVal = extensionMethod.CreateStaticDelegate(typeof(TokenByVal)) as TokenByVal; } } extensionMethod = targetType.GetExtensionMethodSearchingPromotions("Width"); if ((object)extensionMethod != null) { s_WidthByRef = extensionMethod.CreateStaticDelegate(typeof(WidthByRef)) as WidthByRef; if ((object)s_WidthByRef == null) { s_WidthByVal = extensionMethod.CreateStaticDelegate(typeof(WidthByVal)) as WidthByVal; } } 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; } } }