Hi
I have below code & i want it to write only one
using (var yt = new YouTubeService(new BaseClientService.Initializer()
{
ApiKey = "API Key",
}))
Thanks
Hi
I have below code & i want it to write only one
using (var yt = new YouTubeService(new BaseClientService.Initializer()
{
ApiKey = "API Key",
}))
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pankajkumar PatelPosted Dec 15, 2022, 9:53 AM
Hi Ramco Ramco,
One of the way is Singleton Design Pattern In C#. Below is one example for reference purpose:
For more details:
Hope this will help you!