Click here to Skip to main content
16,016,894 members
Home / Discussions / C#
   

C#

 
QuestionHow do I check for existance or clear the contents of a SharePoint List from C# code? Pin
Xarzu19-Sep-24 7:58
Xarzu19-Sep-24 7:58 
AnswerRe: How do I check for existance or clear the contents of a SharePoint List from C# code? Pin
charles henington20-Sep-24 9:26
charles henington20-Sep-24 9:26 
GeneralRe: How do I check for existance or clear the contents of a SharePoint List from C# code? Pin
Xarzu20-Sep-24 12:07
Xarzu20-Sep-24 12:07 
GeneralRe: How do I check for existance or clear the contents of a SharePoint List from C# code? Pin
charles henington21-Sep-24 18:22
charles henington21-Sep-24 18:22 
QuestionWould this be a valid Extension? Pin
charles henington18-Sep-24 21:17
charles henington18-Sep-24 21:17 
AnswerRe: Would this be a valid Extension? Pin
Pete O'Hanlon18-Sep-24 21:39
mvePete O'Hanlon18-Sep-24 21:39 
GeneralRe: Would this be a valid Extension? Pin
charles henington25-Sep-24 17:14
charles henington25-Sep-24 17:14 
AnswerRe: Would this be a valid Extension? Pin
Richard Deeming18-Sep-24 21:40
mveRichard Deeming18-Sep-24 21:40 
From what I can see, it should work. Whilst held, the lock prevents any other thread from obtaining the lock. And the thread that's holding the lock never* yields, so nothing else can be run on the same thread.

(* Assuming DoAction doesn't do anything odd, such as point to an async void method.)

But wouldn't it be better to use a proper async-friendly lock instead?
Building Async Coordination Primitives, Part 6: AsyncLock - .NET Parallel Programming[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Would this be a valid Extension? Pin
charles henington19-Sep-24 5:19
charles henington19-Sep-24 5:19 
GeneralRe: Would this be a valid Extension? Pin
charles henington25-Sep-24 17:05
charles henington25-Sep-24 17:05 
QuestionVisual Studio Weirdness Pin
Richard Andrew x6415-Sep-24 12:38
professionalRichard Andrew x6415-Sep-24 12:38 
AnswerRe: Visual Studio Weirdness Pin
jschell17-Sep-24 12:37
jschell17-Sep-24 12:37 
GeneralRe: Visual Studio Weirdness Pin
Richard Andrew x6418-Sep-24 11:11
professionalRichard Andrew x6418-Sep-24 11:11 
QuestionConverting ulaw to alaw Pin
charles henington14-Sep-24 14:26
charles henington14-Sep-24 14:26 
AnswerRe: Converting ulaw to alaw Pin
trønderen14-Sep-24 18:01
trønderen14-Sep-24 18:01 
GeneralRe: Converting ulaw to alaw Pin
charles henington15-Sep-24 13:39
charles henington15-Sep-24 13:39 
AnswerRe: Converting ulaw to alaw Pin
Peter_in_278015-Sep-24 14:07
professionalPeter_in_278015-Sep-24 14:07 
AnswerRe: Converting ulaw to alaw Pin
jeron115-Sep-24 14:11
jeron115-Sep-24 14:11 
GeneralRe: Converting ulaw to alaw Pin
charles henington18-Sep-24 16:10
charles henington18-Sep-24 16:10 
Questionhow to get image Thumbnail without open it? Pin
Le@rner10-Sep-24 18:34
Le@rner10-Sep-24 18:34 
AnswerRe: how to get image Thumbnail without open it? Pin
Richard Deeming10-Sep-24 21:28
mveRichard Deeming10-Sep-24 21:28 
AnswerRe: how to get image Thumbnail without open it? Pin
OriginalGriff10-Sep-24 23:05
mveOriginalGriff10-Sep-24 23:05 
AnswerRe: how to get image Thumbnail without open it? Pin
Le@rner10-Sep-24 23:29
Le@rner10-Sep-24 23:29 
GeneralRe: how to get image Thumbnail without open it? Pin
Dave Kreskowiak11-Sep-24 3:17
mveDave Kreskowiak11-Sep-24 3:17 
GeneralRe: how to get image Thumbnail without open it? Pin
OriginalGriff11-Sep-24 4:03
mveOriginalGriff11-Sep-24 4:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.