c# - knowing type variable at runtime -



c# - knowing type variable at runtime -

i want sure parameter variable of type guid.

public actionresult edit(guid id) { // if id != guid print error }

i guess pretty basic question i'm stuck here.

thanks

in case, there no chance passed in value not guid.

the guid structure value type - can't inherited. means type compiler take argument method guid.

c#

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

r - url in CRAN extension manual -

asp.net - .NET Control.ID property inconsistency -