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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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