-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
using System;
namespace ElmSharp
{
/// <summary>
- /// Struct defining height and width as a pair of generic type.
+ /// The Size is a struct that defining height and width as a pair of generic type.
/// </summary>
public struct Size : IEquatable<Size>
{
return string.Format("{{Width={0} Height={1}}}", Width, Height);
}
- /// <summary>
- /// Returns a hash value for the <see cref="T:Tizen.UI.Size" />.
- /// </summary>
- /// <returns>A value intended for efficient insertion and lookup in hashtable-based data structures.</returns>
public override int GetHashCode()
{
unchecked
}
}
- /// <summary>
- /// Returns true if the Width and Height values of this are exactly equal to those in the argument.
- /// </summary>
- /// <param name="obj">Another <see cref="T:Tizen.UI.Size" />.</param>
- /// <returns>True if the Width and Height values are equal to those in <paramref name="obj" />. Returns false if <paramref name="obj" /> is not a <see cref="T:Tizen.UI.Size" />.</returns>
public override bool Equals(object obj)
{
if (!(obj is Size))
return Equals((Size)obj);
}
- /// <summary>
- /// Returns true if the Width and Height values of this are exactly equal to those in the argument.
- /// </summary>
- /// <param name="other">Another <see cref="T:Tizen.UI.Size" />.</param>
- /// <returns>True if the Width and Height values are equal to those in <paramref name="other" />.</returns>
public bool Equals(Size other)
{
return Width.Equals(other.Width) && Height.Equals(other.Height);