summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eina_mono/eina_strbuf.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/mono/eina_mono/eina_strbuf.cs')
-rw-r--r--src/bindings/mono/eina_mono/eina_strbuf.cs20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/bindings/mono/eina_mono/eina_strbuf.cs b/src/bindings/mono/eina_mono/eina_strbuf.cs
index e4b6ab1..bdde9a9 100644
--- a/src/bindings/mono/eina_mono/eina_strbuf.cs
+++ b/src/bindings/mono/eina_mono/eina_strbuf.cs
@@ -1,3 +1,18 @@
1/*
2 * Copyright 2019 by its authors. See AUTHORS.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
1using System; 16using System;
2using System.Runtime.InteropServices; 17using System.Runtime.InteropServices;
3using System.ComponentModel; 18using System.ComponentModel;
@@ -238,11 +253,6 @@ public class Strbuf : IDisposable
238 /// <returns>A string with the contents of this buffer.</returns> 253 /// <returns>A string with the contents of this buffer.</returns>
239 public override string ToString() 254 public override string ToString()
240 { 255 {
241 if (Disposed)
242 {
243 throw new ObjectDisposedException(base.GetType().Name);
244 }
245
246 return eina_strbuf_string_get(this.Handle); 256 return eina_strbuf_string_get(this.Handle);
247 } 257 }
248} 258}