From 74c5e0c3762939fbf5988daf6f97c5d9c97ef4f5 Mon Sep 17 00:00:00 2001 From: csharptest Date: Thu, 14 Jul 2011 13:06:22 -0500 Subject: Reformatted to include braces --- src/ProtocolBuffers/GeneratedExtensionLite.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ProtocolBuffers/GeneratedExtensionLite.cs') diff --git a/src/ProtocolBuffers/GeneratedExtensionLite.cs b/src/ProtocolBuffers/GeneratedExtensionLite.cs index 393b6d43..a1623348 100644 --- a/src/ProtocolBuffers/GeneratedExtensionLite.cs +++ b/src/ProtocolBuffers/GeneratedExtensionLite.cs @@ -34,10 +34,8 @@ #endregion -using System; using System.Collections; using System.Collections.Generic; -using Google.ProtocolBuffers.Collections; using Google.ProtocolBuffers.Descriptors; namespace Google.ProtocolBuffers @@ -76,12 +74,14 @@ namespace Google.ProtocolBuffers public string Name { - get + get { string name = fullName; int offset = name.LastIndexOf('.'); if (offset >= 0) + { name = name.Substring(offset); + } return name; } } -- cgit v1.2.3