mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
Added readonly to fields that are never modified (#2759)
Co-authored-by: Lehonti Ramos <john@doe> Co-authored-by: Keegan Campbell <me@kfcampbell.com>
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Octokit.Internal
|
||||
class GitHubSerializerStrategy : PocoJsonSerializerStrategy
|
||||
{
|
||||
readonly List<string> _membersWhichShouldPublishNull = new List<string>();
|
||||
ConcurrentDictionary<Type, ConcurrentDictionary<object, object>> _cachedEnums = new ConcurrentDictionary<Type, ConcurrentDictionary<object, object>>();
|
||||
readonly ConcurrentDictionary<Type, ConcurrentDictionary<object, object>> _cachedEnums = new ConcurrentDictionary<Type, ConcurrentDictionary<object, object>>();
|
||||
|
||||
protected override string MapClrMemberToJsonFieldName(MemberInfo member)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Octokit
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class ApiOptions
|
||||
{
|
||||
private static ApiOptions emptyOptions = new ApiOptions();
|
||||
private static readonly ApiOptions emptyOptions = new ApiOptions();
|
||||
|
||||
public static ApiOptions None
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user