File tree Expand file tree Collapse file tree 1 file changed +8
-20
lines changed
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -15,32 +15,20 @@ internal SqlInfoMessageEventArgs(SqlException exception)
1515 }
1616
1717 /// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlInfoMessageEventArgs.xml' path='docs/members[@name="SqlInfoMessageEventArgs"]/Errors/*' />
18- public SqlErrorCollection Errors
19- {
20- get { return _exception . Errors ; }
21- }
18+ public SqlErrorCollection Errors => _exception . Errors ;
2219
23- private bool ShouldSerializeErrors ( )
24- { // MDAC 65548
25- return ( null != _exception ) && ( 0 < _exception . Errors . Count ) ;
26- }
20+ // MDAC 65548
21+ private bool ShouldSerializeErrors ( ) => ( null != _exception ) && ( 0 < _exception . Errors . Count ) ;
2722
2823 /// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlInfoMessageEventArgs.xml' path='docs/members[@name="SqlInfoMessageEventArgs"]/Message/*' />
29- public string Message
30- { // MDAC 68482
31- get { return _exception . Message ; }
32- }
24+ public string Message => _exception . Message ;
3325
3426 /// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlInfoMessageEventArgs.xml' path='docs/members[@name="SqlInfoMessageEventArgs"]/Source/*' />
35- public string Source
36- { // MDAC 68482
37- get { return _exception . Source ; }
38- }
27+ // MDAC 68482
28+ public string Source => _exception . Source ;
3929
4030 /// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlInfoMessageEventArgs.xml' path='docs/members[@name="SqlInfoMessageEventArgs"]/ToString/*' />
41- override public string ToString ( )
42- { // MDAC 68482
43- return Message ;
44- }
31+ // MDAC 68482
32+ override public string ToString ( ) => Message ;
4533 }
4634}
You can’t perform that action at this time.
0 commit comments