What do the hash signs in #if, #else, #end if mean?

前端 未结 3 934
耶瑟儿~
耶瑟儿~ 2020-12-05 14:07

I\'m writing code to check if a file is available to be checked out of SharePoint and, if it isn\'t, alert the user and tell them that the file is in use by someone else and

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 14:49

    The hash indicates that it's a directive. Used for literally including or excluding code from compilation.

    http://msdn.microsoft.com/en-us/library/7ah135z7.aspx

    whoops that's for vb.net isn't it. Same concept I think.

提交回复
热议问题