asifshaon / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

Extension methods from Google.Apis.Util.Utilities should not be public #148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If public, these methods will appear on various Framework objects, such as:

public static TValue GetValueAsNull<TKey, TValue>(this IDictionary<TKey, 
TValue> data, TKey key)
public static IEnumerable<string> GetValueAsStringListOrEmpty<TKey, 
TValue>(this IDictionary<TKey, TValue> data, TKey key)

Appearing on all dictionary types.
and:

public static void ThrowIfNull(this object obj, string paramName)

appearing on all objects.

This will be visible to customers, and is not a published portion of our API. 
It is not easy for clients to differentiate between supported framework methods 
and our utility/helper methods. We are not in the business of extending the 
.NET framework, and do not intend to support these or even guarantee their 
existence in the future. They should be internal and our DLLs linked via friend 
assemblies or other methods.

Original issue reported on code.google.com by asky...@google.com on 27 Sep 2011 at 2:29

GoogleCodeExporter commented 9 years ago

Original comment by asky...@google.com on 27 Sep 2011 at 2:29

GoogleCodeExporter commented 9 years ago

Original comment by asky...@google.com on 27 Oct 2011 at 5:42

GoogleCodeExporter commented 9 years ago

Original comment by asky...@google.com on 25 Apr 2012 at 4:25

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 13 Apr 2013 at 4:29

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 6 Sep 2013 at 7:19

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 23 Sep 2013 at 2:24

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 3 Oct 2013 at 7:27