@@ -31,7 +31,7 @@ private static ExceptionInfo ConvertToExceptionInfo(Exception e, bool anonymous)
3131 private static System . Net . NetworkInformation . PhysicalAddress GetMacAddress ( )
3232 {
3333 var googleDns = new System . Net . Sockets . UdpClient ( "8.8.8.8" , 53 ) ;
34- IPAddress localAddress = ( ( IPEndPoint ) googleDns . Client . LocalEndPoint ) . Address ;
34+ IPAddress localAddress = ( ( IPEndPoint ) googleDns . Client . LocalEndPoint ) . Address ;
3535
3636 foreach ( var netInterface in System . Net . NetworkInformation . NetworkInterface . GetAllNetworkInterfaces ( ) )
3737 {
@@ -41,13 +41,16 @@ private static System.Net.NetworkInformation.PhysicalAddress GetMacAddress()
4141 return netInterface . GetPhysicalAddress ( ) ;
4242 }
4343 }
44+
4445 return null ;
4546 }
4647
4748 private int GetAnonymousMachineID ( )
4849 {
4950 System . Net . NetworkInformation . PhysicalAddress mac = GetMacAddress ( ) ;
50- return mac != null ? BitConverter . ToInt32 ( System . Security . Cryptography . MD5 . Create ( ) . ComputeHash ( mac . GetAddressBytes ( ) ) , 0 ) : 0 ;
51+ return mac != null
52+ ? BitConverter . ToInt32 ( System . Security . Cryptography . MD5 . Create ( ) . ComputeHash ( mac . GetAddressBytes ( ) ) , 0 )
53+ : 0 ;
5154 }
5255
5356 internal DetailedExceptionDescription GetDetailedExceptionDescription ( )
@@ -61,9 +64,7 @@ internal DetailedExceptionDescription GetDetailedExceptionDescription()
6164 PngScreenShot = PrivateData . Screenshot
6265 } ;
6366 }
64-
65-
66-
67+
6768 internal ExceptionDescription GetExceptionDescription ( bool anonymous )
6869 {
6970 var oldCulture = System . Threading . Thread . CurrentThread . CurrentCulture ;
@@ -97,10 +98,14 @@ internal Application GetApplication()
9798 string moduleName = mainAssembly . GetName ( ) . Name ;
9899
99100 var attributes = mainAssembly . GetCustomAttributes ( typeof ( System . Reflection . AssemblyCompanyAttribute ) , true ) ;
100- string appCompany = ( attributes . Length > 0 ) ? ( ( System . Reflection . AssemblyCompanyAttribute ) attributes [ 0 ] ) . Company : AnonymousData . ToEmail ;
101+ string appCompany = attributes . Length > 0
102+ ? ( ( System . Reflection . AssemblyCompanyAttribute ) attributes [ 0 ] ) . Company
103+ : AnonymousData . ToEmail ;
101104
102105 var attributes2 = mainAssembly . GetCustomAttributes ( typeof ( System . Reflection . AssemblyTitleAttribute ) , true ) ;
103- string appTitle = ( attributes2 . Length > 0 ) ? ( ( System . Reflection . AssemblyTitleAttribute ) attributes2 [ 0 ] ) . Title : moduleName ;
106+ string appTitle = attributes2 . Length > 0
107+ ? ( ( System . Reflection . AssemblyTitleAttribute ) attributes2 [ 0 ] ) . Title
108+ : moduleName ;
104109
105110 var appVersion = mainAssembly . GetName ( ) . Version ;
106111
@@ -110,10 +115,10 @@ internal Application GetApplication()
110115 AppName = appTitle ,
111116 CompanyName = appCompany ,
112117 Email = AnonymousData . ToEmail ,
113- V1 = ( ushort ) appVersion . Major ,
114- V2 = ( ushort ) appVersion . Minor ,
115- V3 = ( ushort ) appVersion . Build ,
116- V4 = ( ushort ) appVersion . Revision ,
118+ V1 = ( ushort ) appVersion . Major ,
119+ V2 = ( ushort ) appVersion . Minor ,
120+ V3 = ( ushort ) appVersion . Build ,
121+ V4 = ( ushort ) appVersion . Revision ,
117122 MainModule = moduleName
118123 } ;
119124 }
@@ -123,11 +128,11 @@ internal static ClientLib GetClientLib()
123128 var clientVersion = typeof ( CrashReport ) . Assembly . GetName ( ) . Version ;
124129 return new ClientLib
125130 {
126- V1 = ( ushort ) clientVersion . Major ,
127- V2 = ( ushort ) clientVersion . Minor ,
128- V3 = ( ushort ) clientVersion . Build ,
129- V4 = ( ushort ) clientVersion . Revision
131+ V1 = ( ushort ) clientVersion . Major ,
132+ V2 = ( ushort ) clientVersion . Minor ,
133+ V3 = ( ushort ) clientVersion . Build ,
134+ V4 = ( ushort ) clientVersion . Revision
130135 } ;
131136 }
132137 }
133- }
138+ }
0 commit comments