Browsing 7239 questions and answers with Jon Skeet
This is the problem, in your controller: res.NodaLocalDateString = apiResource.NodaLocalDate = nodaModel.NodaLocalDate.ToString (); You're not converting a LocalDate into JSON at all; you're converting a string into JSON, and you're... more 6/7/2018 10:39:30 AM
This error isn't really about the Vision API, or authentication - it's due to gRPC not loading properly. It sounds like you're using a "Web Site" project rather than a "Web Application" project. This is a known issue - there's a workaround... more 6/6/2018 8:28:02 AM
Let's convert all your information into appropriate Noda Time types: // Input values (as per the question) var timeStr = "03:22"; var dateStr = "2018/01/12"; var format = "yyyy/MM/dd"; var timeZone = "Asia/Tehran"; // The patterns we'll... more 5/30/2018 11:14:43 AM
Now even though I have initialized the variables You haven't though - not necessarily. Suppose the new SimpleSpkDetSystem(...) call throws an AlizeException. You're catching that exception and continuing - but you won't have assigned... more 5/30/2018 8:58:01 AM
You can use the Platform class in the Google.Api.Gax namespace (in the Google.Api.Gax package): Platform platform = Platform.Instance(); switch (platform.Type) { case PlatformType.Gae: // Code for AppEngine break; ... more 5/29/2018 9:44:07 PM
Disclaimer/authority: I'm the primary author of Google.Cloud.Datastore.V1, and I'm responsible for the Google Cloud Client Libraries for .NET. So I know what I'm talking about here, but I do have biases :) You should really be picking... more 5/29/2018 5:40:44 AM
Don't think of the constructor as creating the instance. Think of it as initializing the instance, with respect to that particular class. So the initialization process looks something like: Allocate memory Initialize object from... more 5/20/2018 2:07:38 PM
You're using replaceAll, which works with regular expressions. While you can fix that by doubling the backslashes, there's no indication that you want regular expressions at all. It would be simpler just to call String.replace instead, as... more 5/17/2018 2:06:29 PM
The closest you can come is: dynamic a = ...; dynamic b = ...; dynamic c = a + b; That will perform the appropriate kind of addition, but you won't know the type of the result until execution time. more 5/14/2018 12:44:08 PM
There are two places you could end up losing the response: When creating the job to start with When polling for completion The first one is relatively tricky to recover from without a job ID; you could list all the jobs in the project... more 5/14/2018 10:14:21 AM