@@ -17,30 +17,30 @@ public sealed partial class Context : IDisposable
1717 private readonly FileStream stream ;
1818 private Entities . Assembly ? assemblyNull ;
1919
20- public Extraction . Context cx { get ; }
21- public MetadataReader mdReader { get ; }
22- public PEReader peReader { get ; }
23- public string assemblyPath { get ; }
24- public Entities . Assembly assembly
20+ public Extraction . Context Cx { get ; }
21+ public MetadataReader MdReader { get ; }
22+ public PEReader PeReader { get ; }
23+ public string AssemblyPath { get ; }
24+ public Entities . Assembly Assembly
2525 {
2626 get { return assemblyNull ! ; }
2727 set { assemblyNull = value ; }
2828 }
29- public PDB . IPdb ? pdb { get ; }
29+ public PDB . IPdb ? Pdb { get ; }
3030
3131 public Context ( Extraction . Context cx , string assemblyPath , bool extractPdbs )
3232 {
33- this . cx = cx ;
34- this . assemblyPath = assemblyPath ;
33+ this . Cx = cx ;
34+ this . AssemblyPath = assemblyPath ;
3535 stream = File . OpenRead ( assemblyPath ) ;
36- peReader = new PEReader ( stream , PEStreamOptions . PrefetchEntireImage ) ;
37- mdReader = peReader . GetMetadataReader ( ) ;
36+ PeReader = new PEReader ( stream , PEStreamOptions . PrefetchEntireImage ) ;
37+ MdReader = PeReader . GetMetadataReader ( ) ;
3838 TypeSignatureDecoder = new Entities . TypeSignatureDecoder ( this ) ;
3939
4040 globalNamespace = new Lazy < Entities . Namespace > ( ( ) => Populate ( new Entities . Namespace ( this , "" , null ) ) ) ;
4141 systemNamespace = new Lazy < Entities . Namespace > ( ( ) => Populate ( new Entities . Namespace ( this , "System" ) ) ) ;
4242 genericHandleFactory = new CachedFunction < GenericContext , Handle , IExtractedEntity > ( CreateGenericHandle ) ;
43- namespaceFactory = new CachedFunction < StringHandle , Entities . Namespace > ( n => CreateNamespace ( mdReader . GetString ( n ) ) ) ;
43+ namespaceFactory = new CachedFunction < StringHandle , Entities . Namespace > ( n => CreateNamespace ( MdReader . GetString ( n ) ) ) ;
4444 namespaceDefinitionFactory = new CachedFunction < NamespaceDefinitionHandle , Entities . Namespace > ( CreateNamespace ) ;
4545 sourceFiles = new CachedFunction < PDB . ISourceFile , Entities . PdbSourceFile > ( path => new Entities . PdbSourceFile ( this , path ) ) ;
4646 folders = new CachedFunction < PathTransformer . ITransformedPath , Entities . Folder > ( path => new Entities . Folder ( this , path ) ) ;
@@ -50,8 +50,8 @@ public Context(Extraction.Context cx, string assemblyPath, bool extractPdbs)
5050
5151 if ( extractPdbs )
5252 {
53- pdb = PDB . PdbReader . Create ( assemblyPath , peReader ) ;
54- if ( pdb != null )
53+ Pdb = PDB . PdbReader . Create ( assemblyPath , PeReader ) ;
54+ if ( Pdb != null )
5555 {
5656 cx . Extractor . Logger . Log ( Util . Logging . Severity . Info , string . Format ( "Found PDB information for {0}" , assemblyPath ) ) ;
5757 }
@@ -60,9 +60,9 @@ public Context(Extraction.Context cx, string assemblyPath, bool extractPdbs)
6060
6161 public void Dispose ( )
6262 {
63- if ( pdb != null )
64- pdb . Dispose ( ) ;
65- peReader . Dispose ( ) ;
63+ if ( Pdb != null )
64+ Pdb . Dispose ( ) ;
65+ PeReader . Dispose ( ) ;
6666 stream . Dispose ( ) ;
6767 }
6868
@@ -80,7 +80,7 @@ public void Extract(IExtractedEntity entity)
8080
8181 public void WriteAssemblyPrefix ( TextWriter trapFile )
8282 {
83- var def = mdReader . GetAssemblyDefinition ( ) ;
83+ var def = MdReader . GetAssemblyDefinition ( ) ;
8484 trapFile . Write ( GetString ( def . Name ) ) ;
8585 trapFile . Write ( '_' ) ;
8686 trapFile . Write ( def . Version . ToString ( ) ) ;
@@ -113,7 +113,7 @@ public Entities.Type ErrorType
113113 /// <returns>The debugging information, or null if the information could not be located.</returns>
114114 public PDB . IMethod ? GetMethodDebugInformation ( MethodDefinitionHandle handle )
115115 {
116- return pdb ? . GetMethod ( handle . ToDebugInformationHandle ( ) ) ;
116+ return Pdb ? . GetMethod ( handle . ToDebugInformationHandle ( ) ) ;
117117 }
118118 }
119119
@@ -123,11 +123,11 @@ public Entities.Type ErrorType
123123 /// </summary>
124124 public abstract class GenericContext
125125 {
126- public Context cx { get ; }
126+ public Context Cx { get ; }
127127
128128 protected GenericContext ( Context cx )
129129 {
130- this . cx = cx ;
130+ this . Cx = cx ;
131131 }
132132
133133 /// <summary>
0 commit comments