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:
Marc Hernandez 2024-05-26 20:13:55 -07:00
parent 193067bf5c
commit 83e10dd444
3 changed files with 7 additions and 6 deletions

View File

@ -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 );

View File

@ -11,6 +11,7 @@ using System.IO;
using Microsoft.CodeAnalysis;
using System.Runtime.CompilerServices;
#nullable enable
namespace res;

View File

@ -982,7 +982,7 @@ namespace lib
if( _cfg.VerboseLogging ) log.info( $"Got obj {obj?.ToString()}" );
}
catch( Exception ex )
catch( Exception )
{
try
{