Skip to content

Commit dbfda1e

Browse files
fix(c#): use double quotes for strings
1 parent 198b7cc commit dbfda1e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/SDK/Language/CSharp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function getParamExample(array $param)
194194
$output .= 'false';
195195
break;
196196
case self::TYPE_STRING:
197-
$output .= "''";
197+
$output .= '""';
198198
break;
199199
case self::TYPE_OBJECT:
200200
$output .= 'new Object()';
@@ -217,7 +217,7 @@ public function getParamExample(array $param)
217217
$output .= ($example) ? 'true' : 'false';
218218
break;
219219
case self::TYPE_STRING:
220-
$output .= "'{$example}'";
220+
$output .= "\"{$example}\"";
221221
break;
222222
}
223223
}

templates/csharp/docs/example.md.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Client client = new Client();
44

55
{% if method.security|length > 0 %}
66
client
7-
.SetEndPoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
7+
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") # Your API Endpoint
88
{% for node in method.security %}
99
{% for key,header in node|keys %}
10-
.Set{{header | caseUcfirst}}('{{node[header]['x-appwrite']['demo']}}') # {{node[header].description}}
10+
.Set{{header | caseUcfirst}}("{{node[header]["x-appwrite"]["demo"]}}") # {{node[header].description}}
1111
{% endfor %}
1212
{% endfor %};
1313

0 commit comments

Comments
 (0)