Update Conn.cs, Resource.cs, and XmlFormatter2.cs
- Fix typos in method names: recieveObject -> receiveObject - Initialize object in receiveObject method - Add nullable enable directive to Resource.cs - Remove unused exception variable in XmlFormatter2
This commit is contained in:
parent
193067bf5c
commit
83e10dd444
10
net/Conn.cs
10
net/Conn.cs
@ -125,14 +125,14 @@ namespace lib
|
||||
m_proc = proc;
|
||||
}
|
||||
|
||||
public object recieveObject()
|
||||
public object receiveObject()
|
||||
{
|
||||
return recieveObject( Stream );
|
||||
return receiveObject( Stream );
|
||||
}
|
||||
|
||||
public object recieveObject( Stream stream )
|
||||
public object receiveObject( Stream stream )
|
||||
{
|
||||
object obj = null;
|
||||
object obj = new object();
|
||||
|
||||
var formatter = m_formatter.getInstance();
|
||||
|
||||
@ -175,7 +175,7 @@ namespace lib
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void recieve( object obj )
|
||||
public virtual void receive( object obj )
|
||||
{
|
||||
if( m_proc != null )
|
||||
m_proc.process( obj );
|
||||
|
||||
@ -11,6 +11,7 @@ using System.IO;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace res;
|
||||
|
||||
|
||||
@ -982,7 +982,7 @@ namespace lib
|
||||
|
||||
if( _cfg.VerboseLogging ) log.info( $"Got obj {obj?.ToString()}" );
|
||||
}
|
||||
catch( Exception ex )
|
||||
catch( Exception )
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user