Skip to content

Commit

Permalink
Updates for Dev15 - ArgumentNotNull() now needs to be deined locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
lajones committed Jan 20, 2016
1 parent 98161ab commit fe5cf16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,14 @@ public class EdmMetadataLoader
private readonly IDynamicHost _host;
private readonly System.Collections.IList _errors;

public static void ArgumentNotNull<T>(T arg, string name) where T : class
{
if (arg == null)
{
throw new ArgumentNullException(name);
}
}

public EdmMetadataLoader(IDynamicHost host, System.Collections.IList errors)
{
ArgumentNotNull(host, "host");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,12 @@ Public Class EdmMetadataLoader
Private ReadOnly _host As IDynamicHost
Private ReadOnly _errors As System.Collections.IList

Public Shared Sub ArgumentNotNull(Of T As Class)(arg As T, name As String)
If arg Is Nothing Then
Throw New ArgumentNullException(name)
End If
End Sub

Public Sub New(host As IDynamicHost, errors As System.Collections.IList)
ArgumentNotNull(host, "host")
ArgumentNotNull(errors, "errors")
Expand Down

0 comments on commit fe5cf16

Please sign in to comment.